From eba54de1ce5f8b5f1b621ae6d783283c58c4d27f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 2 Dec 2013 16:31:31 +0530 Subject: [PATCH] Hide the new Twwak Book behind a testing tweak --- src/calibre/gui2/actions/tweak_epub.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/actions/tweak_epub.py b/src/calibre/gui2/actions/tweak_epub.py index fff5d0eb76..681ce04c4a 100755 --- a/src/calibre/gui2/actions/tweak_epub.py +++ b/src/calibre/gui2/actions/tweak_epub.py @@ -97,6 +97,9 @@ class TweakEpubAction(InterfaceAction): self.do_tweak(book_id) def do_tweak(self, book_id): + from calibre.utils.config_base import tweaks + if not tweaks.get('test_tweak_book', False): + return self.gui.iactions['Unpack Book'].do_tweak(book_id) from calibre.ebooks.oeb.polish.main import SUPPORTED db = self.gui.library_view.model().db fmts = db.formats(book_id, index_is_id=True) or ''