mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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
@ -108,6 +108,7 @@ class TweakEpubAction(InterfaceAction):
|
|||||||
'\n\nFirst convert the book to one of these formats.') % (_(' or '.join(SUPPORTED))),
|
'\n\nFirst convert the book to one of these formats.') % (_(' or '.join(SUPPORTED))),
|
||||||
show=True)
|
show=True)
|
||||||
from calibre.gui2.tweak_book import tprefs
|
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 len(tweakable_fmts) > 1:
|
||||||
if tprefs['choose_tweak_fmt']:
|
if tprefs['choose_tweak_fmt']:
|
||||||
d = Choose(sorted(tweakable_fmts, key=tprefs.defaults['tweak_fmt_order'].index), self.gui)
|
d = Choose(sorted(tweakable_fmts, key=tprefs.defaults['tweak_fmt_order'].index), self.gui)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user