From 399e1a798cdc8413d66d514c0eb4aa37b16801f6 Mon Sep 17 00:00:00 2001 From: Jason Henriquez Date: Thu, 19 Dec 2024 14:43:38 -0600 Subject: [PATCH] Modify search cache removal setting to remove search history as well --- .../components/privacy-settings/privacy-settings.js | 4 +++- .../components/privacy-settings/privacy-settings.vue | 4 ++-- static/locales/en-US.yaml | 8 ++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/privacy-settings/privacy-settings.js b/src/renderer/components/privacy-settings/privacy-settings.js index f9855341ef80d..9c7c12e3146cf 100644 --- a/src/renderer/components/privacy-settings/privacy-settings.js +++ b/src/renderer/components/privacy-settings/privacy-settings.js @@ -60,7 +60,8 @@ export default defineComponent({ if (option !== 'delete') { return } this.clearSessionSearchHistory() - showToast(this.$t('Settings.Privacy Settings.Search cache has been cleared')) + this.removeAllSearchHistoryEntries() + showToast(this.$t('Settings.Privacy Settings.Search cache and history have been cleared')) }, handleRememberHistory: function (value) { @@ -121,6 +122,7 @@ export default defineComponent({ 'updateSaveWatchedProgress', 'updateSaveVideoHistoryWithLastViewedPlaylist', 'clearSessionSearchHistory', + 'removeAllSearchHistoryEntries', 'updateProfile', 'removeProfile', 'updateActiveProfile', diff --git a/src/renderer/components/privacy-settings/privacy-settings.vue b/src/renderer/components/privacy-settings/privacy-settings.vue index 3fe025d4e7df1..61de5429ab190 100644 --- a/src/renderer/components/privacy-settings/privacy-settings.vue +++ b/src/renderer/components/privacy-settings/privacy-settings.vue @@ -33,7 +33,7 @@