Skip to content

Commit

Permalink
feat: add hide and center entries
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsquest committed Sep 22, 2024
1 parent e8fd4f8 commit 10cf80b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ func Display(app fyne.App) {
mainWindow := app.NewWindow("Fynodoro")
if desk, ok := app.(desktop.App); ok {
trayMenu := fyne.NewMenu(app.Metadata().Name,
fyne.NewMenuItem("Show", func() {
mainWindow.Show()
}))
fyne.NewMenuItem("Show", mainWindow.Show),
fyne.NewMenuItem("Hide", mainWindow.Hide),
fyne.NewMenuItem("Center", mainWindow.CenterOnScreen))
desk.SetSystemTrayMenu(trayMenu)
}
mainWindow.SetMaster()
Expand Down

0 comments on commit 10cf80b

Please sign in to comment.