diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-02-16 01:09:27 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-02-24 00:53:06 +0100 |
commit | 39231032ef9abfc3a90af7bf0460037aa220ce11 (patch) | |
tree | 0159913431d04689c5a988eb4d69e001486d9bac /packages/main/src | |
parent | chore(deps): Bump dependencies (diff) | |
download | sophie-39231032ef9abfc3a90af7bf0460037aa220ce11.tar.gz sophie-39231032ef9abfc3a90af7bf0460037aa220ce11.tar.zst sophie-39231032ef9abfc3a90af7bf0460037aa220ce11.zip |
feat: Basic location bar
Still needs adding event handlers to actually navigate the browser.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/main/src')
-rw-r--r-- | packages/main/src/stores/GlobalSettings.ts | 3 | ||||
-rw-r--r-- | packages/main/src/stores/MainStore.ts | 3 |
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; |