1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-10 11:10:18 +02:00

Log error when saving app state fails after showing/hiding command log

This commit is contained in:
Stefan Haller 2023-07-28 14:31:14 +02:00
parent be667682f0
commit 668d29736c

View File

@ -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
},
},