diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-08-28 13:18:58 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-09-04 17:50:49 +0200 |
commit | 1106981827f5730ae9e71ff38bde27751fc66213 (patch) | |
tree | b0a12c4412706d428351ab7245726d66f7005649 /pkg/gui/types | |
parent | 1dac4158e9d8c8ab60203c76e9f86af409724823 (diff) |
Extract a SaveAppStateAndLogError function
It seems that most actions that change a state option and resave the state want
to just log the error.
Diffstat (limited to 'pkg/gui/types')
-rw-r--r-- | pkg/gui/types/common.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/gui/types/common.go b/pkg/gui/types/common.go index df927e1b2..6eacd882b 100644 --- a/pkg/gui/types/common.go +++ b/pkg/gui/types/common.go @@ -73,6 +73,7 @@ type IGuiCommon interface { GetConfig() config.AppConfigurer GetAppState() *config.AppState SaveAppState() error + SaveAppStateAndLogError() // Runs the given function on the UI thread (this is for things like showing a popup asking a user for input). // Only necessary to call if you're not already on the UI thread i.e. you're inside a goroutine. |