mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-06 23:46:13 +02:00
Log error when saving app state fails after showing/hiding command log
This commit is contained in:
parent
be667682f0
commit
668d29736c
@ -24,7 +24,9 @@ func (gui *Gui) handleCreateExtrasMenuPanel() error {
|
|||||||
show := !gui.c.State().GetShowExtrasWindow()
|
show := !gui.c.State().GetShowExtrasWindow()
|
||||||
gui.c.State().SetShowExtrasWindow(show)
|
gui.c.State().SetShowExtrasWindow(show)
|
||||||
gui.c.GetAppState().HideCommandLog = !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
|
return nil
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user