Skip to content

Commit

Permalink
Global settings not yet supported on mobile
Browse files Browse the repository at this point in the history
Don't show settings dialog until this is fixed.
Fixes #2062
  • Loading branch information
andydotxyz committed Mar 10, 2021
1 parent ca48fd2 commit ec5bf01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/fyne_demo/main.go
Expand Up @@ -80,9 +80,13 @@ func main() {
u, _ := url.Parse("https://github.com/sponsors/fyne-io")
_ = a.OpenURL(u)
}))
file := fyne.NewMenu("File", newItem)
if !fyne.CurrentDevice().IsMobile() {
file.Items = append(file.Items, fyne.NewMenuItemSeparator(), settingsItem)
}
mainMenu := fyne.NewMainMenu(
// a quit item will be appended to our first menu
fyne.NewMenu("File", newItem, fyne.NewMenuItemSeparator(), settingsItem),
file,
fyne.NewMenu("Edit", cutItem, copyItem, pasteItem, fyne.NewMenuItemSeparator(), findItem),
helpMenu,
)
Expand Down

0 comments on commit ec5bf01

Please sign in to comment.