mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
Show count of affected notes after tag renaming
This commit is contained in:
parent
186a0202ea
commit
337ef0ae21
1 changed files with 6 additions and 6 deletions
|
|
@ -1184,12 +1184,12 @@ class SidebarTreeView(QTreeView):
|
|||
count = fut.result()
|
||||
if not count:
|
||||
showInfo(tr(TR.BROWSING_TAG_RENAME_WARNING_EMPTY))
|
||||
return
|
||||
|
||||
self.refresh(
|
||||
lambda item: item.item_type == SidebarItemType.TAG
|
||||
and item.full_name == new_name
|
||||
)
|
||||
else:
|
||||
tooltip(tr(TR.BROWSING_NOTES_UPDATED, count=count), parent=self)
|
||||
self.refresh(
|
||||
lambda item: item.item_type == SidebarItemType.TAG
|
||||
and item.full_name == new_name
|
||||
)
|
||||
|
||||
self.mw.checkpoint(tr(TR.ACTIONS_RENAME_TAG))
|
||||
self.browser.model.beginReset()
|
||||
|
|
|
|||
Loading…
Reference in a new issue