mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-07 03:52:46 +02:00
fix: Resort library view after book updates
After a successful download or metadata update, refresh_ids() was called to update the display data for changed rows, but the library view was not resorted. This meant books sorted by a column that FanFicFare had just written would not reorder into their correct position until the user manually triggered a sort. Added a resort() call on the library view model after all_ids are refreshed so the current sort order is re-applied automatically.
This commit is contained in:
parent
36e2183d45
commit
05f8aefbd3
1 changed files with 3 additions and 0 deletions
|
|
@ -1951,6 +1951,9 @@ class FanFicFarePlugin(InterfaceAction):
|
|||
if len(update_list):
|
||||
self.gui.library_view.model().refresh_ids(update_ids)
|
||||
|
||||
if all_ids:
|
||||
self.gui.library_view.model().resort()
|
||||
|
||||
current = self.gui.library_view.currentIndex()
|
||||
self.gui.library_view.model().current_changed(current, self.previous)
|
||||
self.gui.tags_view.recount()
|
||||
|
|
|
|||
Loading…
Reference in a new issue