mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Reset the alignment map when switching libraries. This prevents non-left alignments from taking effect in the newly-opened library.
This commit is contained in:
parent
afd1550e7c
commit
7c5322b852
@ -256,6 +256,7 @@ class BooksModel(QAbstractTableModel): # {{{
|
|||||||
|
|
||||||
def set_database(self, db):
|
def set_database(self, db):
|
||||||
self.ids_to_highlight = []
|
self.ids_to_highlight = []
|
||||||
|
self.alignment_map = {}
|
||||||
self.ids_to_highlight_set = set()
|
self.ids_to_highlight_set = set()
|
||||||
self.current_highlighted_idx = None
|
self.current_highlighted_idx = None
|
||||||
self.db = db
|
self.db = db
|
||||||
|
Loading…
x
Reference in New Issue
Block a user