diff --git a/packages/ui/src/App.vue b/packages/ui/src/App.vue index b0e2518d..f1d8580e 100644 --- a/packages/ui/src/App.vue +++ b/packages/ui/src/App.vue @@ -336,6 +336,7 @@ export default { const savedElectronSwitchToChromiumFetch = localStorage.getItem(constants.LOCAL_STORAGE_KEY.ELECTRON_SWITCH_TO_CHROMIUM_FETCH) const savedDisableIframeSandbox = localStorage.getItem(constants.LOCAL_STORAGE_KEY.DISABLE_IFRAME_SANDBOX) const savedDisableAutoUpdate = localStorage.getItem(constants.LOCAL_STORAGE_KEY.DISABLE_AUTO_UPDATE) + const savedShowTabs = localStorage.getItem(constants.LOCAL_STORAGE_KEY.SHOW_TABS) if(savedTheme) { this.$store.state.theme = savedTheme @@ -403,6 +404,14 @@ export default { } } + if(savedShowTabs) { + try { + this.$store.state.flags.showTabs = JSON.parse(savedShowTabs) + } catch(e) { + this.$store.state.flags.showTabs = true + } + } + emitter.on('error', this.handleError) if(import.meta.env.MODE === 'desktop-electron') { diff --git a/packages/ui/src/components/Frame.vue b/packages/ui/src/components/Frame.vue index 9c998df0..659c2fd8 100644 --- a/packages/ui/src/components/Frame.vue +++ b/packages/ui/src/components/Frame.vue @@ -8,11 +8,10 @@ import ImportModal from '@/components/ImportModal.vue' import { computed, onMounted, onBeforeUnmount, ref } from 'vue' import { useStore } from 'vuex' import constants from '../constants' -import { getSettingsConfig } from '@/helpers' const store = useStore() const activeTab = computed(() => store.state.activeTab) -const showTabs = computed(() => getSettingsConfig().showTabs) +const showTabs = computed(() => store.state.flags.showTabs) const requestResponseLayoutTopBottom = computed(() => store.state.requestResponseLayout === 'top-bottom') const detachedTabs = computed({ get() { diff --git a/packages/ui/src/components/modals/SettingsModal.vue b/packages/ui/src/components/modals/SettingsModal.vue index 0032feed..655aa727 100644 --- a/packages/ui/src/components/modals/SettingsModal.vue +++ b/packages/ui/src/components/modals/SettingsModal.vue @@ -58,9 +58,9 @@
-
Un-ticking this will not show tabs when clicking on either request or folder. Please refresh the app or click for the changes to take effect.
+
Un-ticking this will not show tabs when clicking on either request or folder.