mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Get rid of the tweak to enable Tweak Book integration
This commit is contained in:
parent
1e55722354
commit
3ef9a2009f
@ -97,9 +97,6 @@ class TweakEpubAction(InterfaceAction):
|
|||||||
self.do_tweak(book_id)
|
self.do_tweak(book_id)
|
||||||
|
|
||||||
def do_tweak(self, 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
|
from calibre.ebooks.oeb.polish.main import SUPPORTED
|
||||||
db = self.gui.library_view.model().db
|
db = self.gui.library_view.model().db
|
||||||
fmts = db.formats(book_id, index_is_id=True) or ''
|
fmts = db.formats(book_id, index_is_id=True) or ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user