Skip to content

Commit

Permalink
Log error when saving app state fails after showing/hiding command log
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaller committed Jul 28, 2023
1 parent d11af09 commit fb7e268
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/gui/extras_panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ func (gui *Gui) handleCreateExtrasMenuPanel() error {
show := !gui.c.State().GetShowExtrasWindow()
gui.c.State().SetShowExtrasWindow(show)
gui.c.GetAppState().HideCommandLog = !show
_ = gui.c.SaveAppState()
if err := gui.c.SaveAppState(); err != nil {
gui.c.Log.Errorf("error when saving app state: %v", err)
}
return nil
},
},
Expand Down

0 comments on commit fb7e268

Please sign in to comment.