diff options
Diffstat (limited to 'packages/main/src/stores')
-rw-r--r-- | packages/main/src/stores/SharedStore.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/main/src/stores/SharedStore.ts b/packages/main/src/stores/SharedStore.ts index 960b65e..3aa8c73 100644 --- a/packages/main/src/stores/SharedStore.ts +++ b/packages/main/src/stores/SharedStore.ts | |||
@@ -18,7 +18,7 @@ | |||
18 | * SPDX-License-Identifier: AGPL-3.0-only | 18 | * SPDX-License-Identifier: AGPL-3.0-only |
19 | */ | 19 | */ |
20 | 20 | ||
21 | import { defineSharedStoreModel } from '@sophie/shared'; | 21 | import { defineSharedStoreModel, WritingDirection } from '@sophie/shared'; |
22 | import { getSnapshot, Instance } from 'mobx-state-tree'; | 22 | import { getSnapshot, Instance } from 'mobx-state-tree'; |
23 | 23 | ||
24 | import { getLogger } from '../utils/log'; | 24 | import { getLogger } from '../utils/log'; |
@@ -64,8 +64,9 @@ const SharedStore = defineSharedStoreModel(GlobalSettings, Profile, Service) | |||
64 | loadConfig(config: Config): void { | 64 | loadConfig(config: Config): void { |
65 | loadConfig(self, config); | 65 | loadConfig(self, config); |
66 | }, | 66 | }, |
67 | setLanguage(langauge: string): void { | 67 | setLanguage(langauge: string, writingDirection: WritingDirection): void { |
68 | self.language = langauge; | 68 | self.language = langauge; |
69 | self.writingDirection = writingDirection; | ||
69 | }, | 70 | }, |
70 | setShouldUseDarkColors(shouldUseDarkColors: boolean): void { | 71 | setShouldUseDarkColors(shouldUseDarkColors: boolean): void { |
71 | self.shouldUseDarkColors = shouldUseDarkColors; | 72 | self.shouldUseDarkColors = shouldUseDarkColors; |