mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 04:43:36 +02:00
Refresh tweak settings before launching TB since they could have been changed out of process
This commit is contained in:
parent
ea3d7bf6fc
commit
31a02ba0f6
1 changed files with 1 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ def do_tweak(self, book_id):
|
|||
'\n\nFirst convert the book to one of these formats.') % (_(' or '.join(SUPPORTED))),
|
||||
show=True)
|
||||
from calibre.gui2.tweak_book import tprefs
|
||||
tprefs.refresh() # In case they were changed in a Tweak Book process
|
||||
if len(tweakable_fmts) > 1:
|
||||
if tprefs['choose_tweak_fmt']:
|
||||
d = Choose(sorted(tweakable_fmts, key=tprefs.defaults['tweak_fmt_order'].index), self.gui)
|
||||
|
|
|
|||
Loading…
Reference in a new issue