Skip to content

Commit

Permalink
SettingsState: fixed un initialized fields
Browse files Browse the repository at this point in the history
  • Loading branch information
warpdesign committed May 3, 2024
1 parent 73c7dd5 commit 396db0f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/state/settingsState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 396db0f

Please sign in to comment.