mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f45425ba99
commit
7c7f5ec119
@ -22,7 +22,7 @@ def config_widget_for_input_plugin(plugin):
|
|||||||
name = plugin.name.lower().replace(' ', '_')
|
name = plugin.name.lower().replace(' ', '_')
|
||||||
try:
|
try:
|
||||||
return __import__('calibre.gui2.convert.'+name,
|
return __import__('calibre.gui2.convert.'+name,
|
||||||
fromlist=[1])
|
fromlist=[1]).PluginWidget
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -60,9 +60,8 @@ class ConfigTabs(QTabWidget):
|
|||||||
self.widgets = [lf, ps, sd, toc]
|
self.widgets = [lf, ps, sd, toc]
|
||||||
|
|
||||||
for plugin in input_format_plugins():
|
for plugin in input_format_plugins():
|
||||||
input_widget = config_widget_for_input_plugin(plugin)
|
pw = config_widget_for_input_plugin(plugin)
|
||||||
if input_widget is not None:
|
if pw is not None:
|
||||||
pw = input_widget.PluginWidget
|
|
||||||
pw.ICON = I('forward.svg')
|
pw.ICON = I('forward.svg')
|
||||||
self.widgets.append(widget_factory(pw))
|
self.widgets.append(widget_factory(pw))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user