mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
[darwin] Add systray.OpenMenu
This commit is contained in:
parent
fe48b9d03d
commit
05262134ca
1 changed files with 7 additions and 0 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue