aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main
diff options
context:
space:
mode:
Diffstat (limited to 'packages/main')
-rw-r--r--packages/main/src/stores/GlobalSettings.ts3
-rw-r--r--packages/main/src/stores/MainStore.ts3
2 files changed, 6 insertions, 0 deletions
diff --git a/packages/main/src/stores/GlobalSettings.ts b/packages/main/src/stores/GlobalSettings.ts
index 7bbc089..2af9da2 100644
--- a/packages/main/src/stores/GlobalSettings.ts
+++ b/packages/main/src/stores/GlobalSettings.ts
@@ -37,6 +37,9 @@ const GlobalSettings = overrideProps(GlobalSettingsBase, {
37 setThemeSource(mode: ThemeSource): void { 37 setThemeSource(mode: ThemeSource): void {
38 self.themeSource = mode; 38 self.themeSource = mode;
39 }, 39 },
40 setShowLocationBar(showLocationBar: boolean): void {
41 self.showLocationBar = showLocationBar;
42 },
40 setSelectedServiceId(serviceId: string): void { 43 setSelectedServiceId(serviceId: string): void {
41 const serviceInstance = resolveIdentifier(Service, self, serviceId); 44 const serviceInstance = resolveIdentifier(Service, self, serviceId);
42 if (serviceInstance === undefined) { 45 if (serviceInstance === undefined) {
diff --git a/packages/main/src/stores/MainStore.ts b/packages/main/src/stores/MainStore.ts
index 9ac56f4..cb4f4c9 100644
--- a/packages/main/src/stores/MainStore.ts
+++ b/packages/main/src/stores/MainStore.ts
@@ -86,6 +86,9 @@ const MainStore = types
86 case 'set-theme-source': 86 case 'set-theme-source':
87 self.settings.setThemeSource(action.themeSource); 87 self.settings.setThemeSource(action.themeSource);
88 break; 88 break;
89 case 'set-show-location-bar':
90 self.settings.setShowLocationBar(action.showLocationBar);
91 break;
89 default: 92 default:
90 log.error('Unknown action to dispatch', action); 93 log.error('Unknown action to dispatch', action);
91 break; 94 break;