mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix regression that broke sort_columns_at_startup twek in 0.7.36
This commit is contained in:
parent
59b476a8b2
commit
bd4f65258d
1 changed files with 6 additions and 1 deletions
|
|
@ -386,7 +386,12 @@ def restore_state(self):
|
|||
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…
Reference in a new issue