Centralize app state ownership in controller
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ func (u *ui) performShortcut(name string) error {
|
||||
case shortcutLock:
|
||||
return u.lockAction()
|
||||
case shortcutNewEntry:
|
||||
u.state.SelectedEntryID = ""
|
||||
u.state.BeginNewEntry()
|
||||
u.loadSelectedEntryIntoEditor()
|
||||
u.entryPath.SetText(strings.Join(u.state.CurrentPath, " / "))
|
||||
u.keyboardFocus = detailFocusID(detailFieldTitle)
|
||||
|
||||
Reference in New Issue
Block a user