Fix menu navigation, informational items, and boolean editing
This commit is contained in:
8 files changed
+355
-24
No files matched your search
@@ -78,7 +78,7 @@ func (l *settings) HandleButtonPress(ctx app.Context) {
|
||||
return
|
||||
}
|
||||
l.menu = menu
|
||||
} else {
|
||||
} else if item.IsEditable() {
|
||||
log.Debug("enter edit mode")
|
||||
l.menu.ToggleEdit()
|
||||
}
|
||||
@@ -90,12 +90,14 @@ func (l *settings) HandleButtonPress(ctx app.Context) {
|
||||
func (l *settings) HandleButtonLongPress(ctx app.Context) {
|
||||
// Rewind to root menu
|
||||
for {
|
||||
l.menu.Editing = false
|
||||
parent := l.menu.Parent
|
||||
if parent == nil {
|
||||
break
|
||||
}
|
||||
l.menu = parent
|
||||
}
|
||||
l.menuWidget.Update(l.menu)
|
||||
|
||||
// Close settings layout.
|
||||
ctx.Show(nil)
|
||||
|
||||
Reference in new issue
Block a user