tweaks and optimizations

This commit is contained in:
Drew Weymouth
2024-07-23 08:24:50 -07:00
parent de1e0611b1
commit b78b235341
4 changed files with 24 additions and 10 deletions
+6
View File
@@ -135,6 +135,12 @@ func (b *BrowsingPane) AddSettingsMenuItem(label string, action func()) {
fyne.NewMenuItem(label, action))
}
func (b *BrowsingPane) AddSettingsSubmenu(label string, menu *fyne.Menu) {
item := fyne.NewMenuItem(label, nil)
item.ChildMenu = menu
b.settingsMenu.Items = append(b.settingsMenu.Items, item)
}
func (b *BrowsingPane) AddSettingsMenuSeparator() {
b.settingsMenu.Items = append(b.settingsMenu.Items,
fyne.NewMenuItemSeparator())