mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Log error when saving app state fails after showing/hiding command log
This commit is contained in:
parent
be667682f0
commit
668d29736c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue