Fix menu navigation, informational items, and boolean editing

This commit is contained in:
maze committed 2026-10-29 18:59:46 +01:00
1 parent e4c2060422
commit 62b32c15cf
8 files changed
+355 -24

No files matched your search

+2 -1
View File
@@ -22,6 +22,7 @@ func NewMenu(size image.Point, root *menu.Menu) *Menu {
w := new(Menu)
w.Extend(w)
w.Resize(size)
w.Update(root)
return w
}
@@ -44,7 +45,7 @@ func (w *Menu) Redraw() {
}
func (w *Menu) Refresh(ctx app.Context) bool {
if !w.IsVisible() {
if !w.IsVisible() || w.Root == nil {
return false
}