Allow Plugins to use other dialogs
This commit is contained in:
parent
69248b2fe7
commit
dd39067ef7
|
@ -239,8 +239,10 @@ class PluginsWindow(object):
|
||||||
plugin_name = model.get_value(iter, Column.NAME)
|
plugin_name = model.get_value(iter, Column.NAME)
|
||||||
is_active = model.get_value(iter, Column.ACTIVE)
|
is_active = model.get_value(iter, Column.ACTIVE)
|
||||||
|
|
||||||
|
if isinstance(plugin.config_dialog, GajimPluginConfigDialog):
|
||||||
result = plugin.config_dialog.run(self.window)
|
plugin.config_dialog.run(self.window)
|
||||||
|
else:
|
||||||
|
plugin.config_dialog(self.window)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# No plugin selected. this should never be reached. As configure
|
# No plugin selected. this should never be reached. As configure
|
||||||
|
|
Loading…
Reference in New Issue