mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3 linux] systray implementation
Linux requires a `gtk_menu_bar` for a gtk_window to display a menu. For the `systray` a `gtk_menu` is needed instead. This change creates the correct type of `impl` for the `Menu` depending on how it is being used.
This commit is contained in:
@@ -82,6 +82,7 @@ func (m *linuxApp) getApplicationMenu() pointer {
|
||||
|
||||
menu := globalApplication.ApplicationMenu
|
||||
if menu != nil {
|
||||
menu.impl = newMenuBarImpl(menu)
|
||||
InvokeSync(func() {
|
||||
menu.Update()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user