From 31a02ba0f6ee017cd5cb1e7f0a09eed6d69b3497 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 11 Dec 2013 09:42:25 +0530 Subject: [PATCH] Refresh tweak settings before launching TB since they could have been changed out of process --- src/calibre/gui2/actions/tweak_epub.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/actions/tweak_epub.py b/src/calibre/gui2/actions/tweak_epub.py index e62428f583..c92f2ef285 100755 --- a/src/calibre/gui2/actions/tweak_epub.py +++ b/src/calibre/gui2/actions/tweak_epub.py @@ -108,6 +108,7 @@ class TweakEpubAction(InterfaceAction): '\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)