mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression that broke sort_columns_at_startup twek in 0.7.36
This commit is contained in:
parent
59b476a8b2
commit
bd4f65258d
@ -386,7 +386,12 @@ class BooksView(QTableView): # {{{
|
||||
old_state = self.get_default_state()
|
||||
|
||||
if tweaks['sort_columns_at_startup'] is not None:
|
||||
old_state['sort_history'] = tweaks['sort_columns_at_startup']
|
||||
sh = []
|
||||
for c,d in tweaks['sort_columns_at_startup']:
|
||||
if not isinstance(d, bool):
|
||||
d = True if d == 0 else False
|
||||
sh.append((c, d))
|
||||
old_state['sort_history'] = sh
|
||||
|
||||
self.apply_state(old_state)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user