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 22, 2021
1 parent 79b600b commit 7a29c17
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 7a29c17

Please sign in to comment.