[darwin] Add systray.OpenMenu

This commit is contained in:
Lea Anthony
2023-09-21 19:24:30 +10:00
parent fe48b9d03d
commit 05262134ca
+7
View File
@@ -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 (