Remove prompt when deleting saved searches

This commit is contained in:
RumovZ 2021-03-11 09:20:41 +01:00
parent 337ef0ae21
commit 3219bb2539
2 changed files with 0 additions and 10 deletions

View File

@ -22,7 +22,6 @@ browsing-change-to = Change { $val } to:
browsing-clear-unused = Clear Unused
browsing-clear-unused-tags = Clear Unused Tags
browsing-confirm-saved-search-overwrite = A saved search with the name { $name } already exists. Do you want to overwrite it?
browsing-confirm-saved-searches-deletion = Are you sure you want to delete all selected saved searches?
browsing-created = Created
browsing-ctrlandshiftande = Ctrl+Shift+E
browsing-current-deck = Current Deck
@ -72,14 +71,11 @@ browsing-question = Question
browsing-queue-bottom = Queue bottom: { $val }
browsing-queue-top = Queue top: { $val }
browsing-randomize-order = Randomize order
browsing-remove-current-filter = Remove Current Filter...
browsing-remove-from-your-saved-searches = Remove { $val } from your saved searches?
browsing-remove-tags = Remove Tags...
browsing-replace-with = <b>Replace With</b>:
browsing-reposition = Reposition...
browsing-reposition-new-cards = Reposition New Cards
browsing-reschedule = Reschedule
browsing-save-current-filter = Save Current Filter...
browsing-search-bar-hint = Search cards/notes (type text, then press Enter)
browsing-search-in = Search in:
browsing-search-within-formatting-slow = Search within formatting (slow)

View File

@ -1241,12 +1241,6 @@ class SidebarTreeView(QTreeView):
def remove_saved_searches(self, _item: SidebarItem) -> None:
selected = self._selected_saved_searches()
if len(selected) == 1:
query = tr(TR.BROWSING_REMOVE_FROM_YOUR_SAVED_SEARCHES, val=selected[0])
else:
query = tr(TR.BROWSING_CONFIRM_SAVED_SEARCHES_DELETION)
if not askUser(query):
return
conf = self._get_saved_searches()
for name in selected:
del conf[name]