From 05262134cabb8bfa429ed1bd3466a6c3e801ab5d Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 21 Sep 2023 19:24:30 +1000 Subject: [PATCH] [darwin] Add `systray.OpenMenu` --- v3/pkg/application/systemtray_darwin.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/v3/pkg/application/systemtray_darwin.go b/v3/pkg/application/systemtray_darwin.go index 1ff3357ce..7ed0daaf9 100644 --- a/v3/pkg/application/systemtray_darwin.go +++ b/v3/pkg/application/systemtray_darwin.go @@ -31,6 +31,13 @@ type macosSystemTray struct { parent *SystemTray } +func (s *macosSystemTray) openMenu() { + if s.nsMenu == nil { + return + } + C.showMenu(s.nsStatusItem, s.nsMenu) +} + type button int const (