diff --git a/frontend/types/gotypes.d.ts b/frontend/types/gotypes.d.ts index 1e4d53ca1..8584c1260 100644 --- a/frontend/types/gotypes.d.ts +++ b/frontend/types/gotypes.d.ts @@ -638,6 +638,7 @@ declare global { "autoupdate:installonquit"?: boolean; "autoupdate:channel"?: string; "preview:showhiddenfiles"?: boolean; + "tab:preset"?: string; "widget:*"?: boolean; "widget:showhelp"?: boolean; "window:*"?: boolean; diff --git a/pkg/wconfig/metaconsts.go b/pkg/wconfig/metaconsts.go index 87d8940dd..40c40f592 100644 --- a/pkg/wconfig/metaconsts.go +++ b/pkg/wconfig/metaconsts.go @@ -48,6 +48,8 @@ const ( ConfigKey_PreviewShowHiddenFiles = "preview:showhiddenfiles" + ConfigKey_TabPreset = "tab:preset" + ConfigKey_WidgetClear = "widget:*" ConfigKey_WidgetShowHelp = "widget:showhelp" diff --git a/pkg/wconfig/settingsconfig.go b/pkg/wconfig/settingsconfig.go index ae49174cf..5b64adae7 100644 --- a/pkg/wconfig/settingsconfig.go +++ b/pkg/wconfig/settingsconfig.go @@ -75,6 +75,8 @@ type SettingsType struct { PreviewShowHiddenFiles *bool `json:"preview:showhiddenfiles,omitempty"` + TabPreset string `json:"tab:preset,omitempty"` + WidgetClear bool `json:"widget:*,omitempty"` WidgetShowHelp *bool `json:"widget:showhelp,omitempty"`