summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gui/src/main/gui-settings.ts8
-rw-r--r--gui/src/shared/gui-settings-state.ts1
2 files changed, 9 insertions, 0 deletions
diff --git a/gui/src/main/gui-settings.ts b/gui/src/main/gui-settings.ts
index 895781099e..2a0cad2841 100644
--- a/gui/src/main/gui-settings.ts
+++ b/gui/src/main/gui-settings.ts
@@ -10,6 +10,14 @@ export default class GuiSettings {
return this.stateValue;
}
+ set preferredLocale(newValue: string | undefined) {
+ this.changeStateAndNotify({ ...this.stateValue, preferredLocale: newValue });
+ }
+
+ get preferredLocale(): string | undefined {
+ return this.preferredLocale;
+ }
+
set enableSystemNotifications(newValue: boolean) {
this.changeStateAndNotify({ ...this.stateValue, enableSystemNotifications: newValue });
}
diff --git a/gui/src/shared/gui-settings-state.ts b/gui/src/shared/gui-settings-state.ts
index fdda92d830..42bb05a062 100644
--- a/gui/src/shared/gui-settings-state.ts
+++ b/gui/src/shared/gui-settings-state.ts
@@ -1,4 +1,5 @@
export interface IGuiSettingsState {
+ preferredLocale?: string;
enableSystemNotifications: boolean;
autoConnect: boolean;
monochromaticIcon: boolean;