Fix menu navigation, informational items, and boolean editing
This commit is contained in:
8 files changed
+355
-24
No files matched your search
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user