Skip to content

Commit

Permalink
Modify search cache removal setting to remove search history as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr committed Dec 19, 2024
1 parent 820932e commit 399e1a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/renderer/components/privacy-settings/privacy-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -121,6 +122,7 @@ export default defineComponent({
'updateSaveWatchedProgress',
'updateSaveVideoHistoryWithLastViewedPlaylist',
'clearSessionSearchHistory',
'removeAllSearchHistoryEntries',
'updateProfile',
'removeProfile',
'updateActiveProfile',
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/privacy-settings/privacy-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<br>
<ft-flex-box>
<ft-button
:label="$t('Settings.Privacy Settings.Clear Search Cache')"
:label="$t('Settings.Privacy Settings.Clear Search Cache and History')"
text-color="var(--destructive-text-color)"
background-color="var(--destructive-color)"
:icon="['fas', 'trash']"
Expand Down Expand Up @@ -63,7 +63,7 @@
</ft-flex-box>
<ft-prompt
v-if="showSearchCachePrompt"
:label="$t('Settings.Privacy Settings.Are you sure you want to clear out your search cache?')"
:label="$t('Settings.Privacy Settings.Are you sure you want to clear out your search cache and history?')"
:option-names="promptNames"
:option-values="promptValues"
:is-first-option-destructive="true"
Expand Down
8 changes: 4 additions & 4 deletions static/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,10 @@ Settings:
Remember History: Remember History
Save Watched Progress: Save Watched Progress
Save Watched Videos With Last Viewed Playlist: Save Watched Videos With Last Viewed Playlist
Clear Search Cache: Clear Search Cache
Are you sure you want to clear out your search cache?: Are you sure you want to
clear out your search cache?
Search cache has been cleared: Search cache has been cleared
Clear Search Cache and History: Clear Search Cache and History
Are you sure you want to clear out your search cache and history?: Are you sure you want to
clear out your search cache and history?
Search cache and history have been cleared: Search cache and history have been cleared
Remove Watch History: Remove Watch History
Are you sure you want to remove your entire watch history?: Are you sure you want
to remove your entire watch history?
Expand Down

0 comments on commit 399e1a7

Please sign in to comment.