more fyne.Do updates
This commit is contained in:
+3
-3
@@ -152,7 +152,7 @@ func NewMainWindow(fyneApp fyne.App, appName, displayAppName, appVersion string,
|
||||
if app.Config.Application.CloseToSystemTray && m.HaveSystemTray() {
|
||||
m.Window.Hide()
|
||||
} else {
|
||||
fyneApp.Quit()
|
||||
m.Window.Close()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -314,8 +314,8 @@ func (m *MainWindow) SetupSystemTrayMenu(appName string, fyneApp fyne.App) {
|
||||
m.App.PlaybackManager.SetVolume(vol)
|
||||
}),
|
||||
fyne.NewMenuItemSeparator(),
|
||||
fyne.NewMenuItem(lang.L("Show"), m.Window.Show),
|
||||
fyne.NewMenuItem(lang.L("Hide"), m.Window.Hide),
|
||||
fyne.NewMenuItem(lang.L("Show"), func() { fyne.Do(m.Window.Show) }),
|
||||
fyne.NewMenuItem(lang.L("Hide"), func() { fyne.Do(m.Window.Hide) }),
|
||||
)
|
||||
desk.SetSystemTrayMenu(menu)
|
||||
desk.SetSystemTrayIcon(res.ResAppicon256Png)
|
||||
|
||||
Reference in New Issue
Block a user