From 39231032ef9abfc3a90af7bf0460037aa220ce11 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 16 Feb 2022 01:09:27 +0100 Subject: feat: Basic location bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Still needs adding event handlers to actually navigate the browser. Signed-off-by: Kristóf Marussy --- packages/main/src/stores/GlobalSettings.ts | 3 +++ packages/main/src/stores/MainStore.ts | 3 +++ 2 files changed, 6 insertions(+) (limited to 'packages/main/src') 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, { setThemeSource(mode: ThemeSource): void { self.themeSource = mode; }, + setShowLocationBar(showLocationBar: boolean): void { + self.showLocationBar = showLocationBar; + }, setSelectedServiceId(serviceId: string): void { const serviceInstance = resolveIdentifier(Service, self, serviceId); 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 case 'set-theme-source': self.settings.setThemeSource(action.themeSource); break; + case 'set-show-location-bar': + self.settings.setShowLocationBar(action.showLocationBar); + break; default: log.error('Unknown action to dispatch', action); break; -- cgit v1.2.3-70-g09d2