mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9ad8fb26a7
commit
986f9f489d
@ -788,10 +788,13 @@ def initialize_plugins(perf=False):
|
|||||||
external_plugins = config['plugins'].copy()
|
external_plugins = config['plugins'].copy()
|
||||||
|
|
||||||
if 'KoboTouchExtended' in external_plugins and is_disabled('KoboTouch') and not is_disabled('KoboTouchExtended'):
|
if 'KoboTouchExtended' in external_plugins and is_disabled('KoboTouch') and not is_disabled('KoboTouchExtended'):
|
||||||
# We remove KoboTouchExtended and re-enable KoboTouch so that the Kobo
|
# We disable KoboTouchExtended and re-enable KoboTouch so that the Kobo
|
||||||
# device keeps working even though KoboTouchExtended is blacklisted.
|
# device keeps working even though KoboTouchExtended is blacklisted.
|
||||||
|
try:
|
||||||
disable_plugin_by_name('KoboTouchExtended')
|
disable_plugin_by_name('KoboTouchExtended')
|
||||||
enable_plugin('KoboTouch')
|
enable_plugin('KoboTouch')
|
||||||
|
except Exception:
|
||||||
|
traceback.print_exc()
|
||||||
for name in BLACKLISTED_PLUGINS:
|
for name in BLACKLISTED_PLUGINS:
|
||||||
external_plugins.pop(name, None)
|
external_plugins.pop(name, None)
|
||||||
system_plugins.pop(name, None)
|
system_plugins.pop(name, None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user