diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-07-28 14:31:14 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-07-31 11:41:55 +0200 |
commit | 668d29736c20a22396eaa36f70279cfd23f71c39 (patch) | |
tree | f45561290a4ca3e002d10bef589abbf3bd0bc1a5 /pkg/gui/extras_panel.go | |
parent | be667682f09652a32e0c5c9bb12c20caa6571349 (diff) |
Log error when saving app state fails after showing/hiding command log
Diffstat (limited to 'pkg/gui/extras_panel.go')
-rw-r--r-- | pkg/gui/extras_panel.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/extras_panel.go b/pkg/gui/extras_panel.go index 4d607f631..5381823b9 100644 --- a/pkg/gui/extras_panel.go +++ b/pkg/gui/extras_panel.go @@ -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 }, }, |