diff --git a/src/components/Settings/SearchBar.vue b/src/components/Settings/SearchBar.vue index cf4dc338..0a461e72 100644 --- a/src/components/Settings/SearchBar.vue +++ b/src/components/Settings/SearchBar.vue @@ -55,7 +55,8 @@ @@ -92,7 +93,7 @@ export default { akn: new ArrowKeyNavigation(), getCustomKeyShortcuts, showSearchPanel: false, - goToLinkEnabled: true, // default: enabled + // goToLinkEnabled is now managed by Vuex/appConfig }; }, computed: { @@ -102,6 +103,20 @@ export default { searchPrefs() { return this.$store.getters.webSearch || {}; }, + goToLinkEnabled: { + get() { + return this.$store.getters.goToLinkEnabled; + }, + set(value) { + this.$store.commit('setGoToLinkEnabled', value); + // Also update appConfig in store for persistence + const newAppConfig = { + ...this.$store.getters.appConfig, + goToLinkEnabled: value, + }; + this.$store.commit('SET_APP_CONFIG', newAppConfig); + }, + }, }, mounted() { window.addEventListener('keydown', this.handleKeyPress);