mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Also used position based indexing when refreshing the Tag browser after a metadata edit
This commit is contained in:
parent
f2edf667d6
commit
af48f8907b
@ -346,7 +346,7 @@ class EditMetadataAction(InterfaceAction):
|
|||||||
current = self.gui.library_view.currentIndex()
|
current = self.gui.library_view.currentIndex()
|
||||||
self.gui.refresh_cover_browser()
|
self.gui.refresh_cover_browser()
|
||||||
m.current_changed(current, previous or current)
|
m.current_changed(current, previous or current)
|
||||||
self.gui.tags_view.recount()
|
self.gui.tags_view.recount_with_position_based_index()
|
||||||
|
|
||||||
def do_edit_metadata(self, row_list, current_row, editing_multiple):
|
def do_edit_metadata(self, row_list, current_row, editing_multiple):
|
||||||
from calibre.gui2.metadata.single import edit_metadata
|
from calibre.gui2.metadata.single import edit_metadata
|
||||||
|
@ -769,6 +769,10 @@ class TagsView(QTreeView): # {{{
|
|||||||
idx = idx.parent()
|
idx = idx.parent()
|
||||||
return self.isExpanded(idx)
|
return self.isExpanded(idx)
|
||||||
|
|
||||||
|
def recount_with_position_based_index(self):
|
||||||
|
self._model.use_position_based_index_on_next_recount = True
|
||||||
|
self.recount()
|
||||||
|
|
||||||
def recount(self, *args):
|
def recount(self, *args):
|
||||||
'''
|
'''
|
||||||
Rebuild the category tree, expand any categories that were expanded,
|
Rebuild the category tree, expand any categories that were expanded,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user