From 08497d2e6b6dc2529cb634116ddcda8cf4cb2d6d Mon Sep 17 00:00:00 2001 From: Nicolas Ramz Date: Fri, 3 May 2024 14:23:33 +0200 Subject: [PATCH] SettingsState: fixed un initialized fields --- src/state/settingsState.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/state/settingsState.ts b/src/state/settingsState.ts index 37173469..ad5b5686 100644 --- a/src/state/settingsState.ts +++ b/src/state/settingsState.ts @@ -20,23 +20,23 @@ const DEFAULT_TERMINAL = { } export class SettingsState { - lang: string + lang = '' // this is the asked mode - darkMode: boolean | 'auto' + darkMode: boolean | 'auto' = 'auto' - defaultViewMode: ViewModeName + defaultViewMode: ViewModeName = null // this is the current active mode - isDarkModeActive: boolean + isDarkModeActive = false - defaultFolder: string + defaultFolder = '' - defaultTerminal: string + defaultTerminal = '' - terminalTemplate: string + terminalTemplate = '' - version: string + version = '' constructor(version: string) { makeObservable(this, {