mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Hide the new Twwak Book behind a testing tweak
This commit is contained in:
parent
7e4da66e09
commit
eba54de1ce
1 changed files with 3 additions and 0 deletions
|
|
@ -97,6 +97,9 @@ def tweak_book(self):
|
|||
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 ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue