Commit e5735218 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Plugins: Disable config dialog button if plugin is not active

parent 956b852b
...@@ -168,7 +168,7 @@ class PluginsWindow(Gtk.ApplicationWindow, EventHelper): ...@@ -168,7 +168,7 @@ class PluginsWindow(Gtk.ApplicationWindow, EventHelper):
self._ui.uninstall_plugin_button.set_sensitive(True) self._ui.uninstall_plugin_button.set_sensitive(True)
self._ui.configure_plugin_button.set_sensitive( self._ui.configure_plugin_button.set_sensitive(
plugin.config_dialog is not None) plugin.config_dialog is not None and plugin.active)
def _clear_installed_plugin_info(self): def _clear_installed_plugin_info(self):
self._ui.plugin_name_label.set_text('') self._ui.plugin_name_label.set_text('')
...@@ -217,6 +217,7 @@ class PluginsWindow(Gtk.ApplicationWindow, EventHelper): ...@@ -217,6 +217,7 @@ class PluginsWindow(Gtk.ApplicationWindow, EventHelper):
transient_for=self) transient_for=self)
return return
self._ui.configure_plugin_button.set_sensitive(not is_active)
self.installed_plugins_model[path][Column.ACTIVE] = not is_active self.installed_plugins_model[path][Column.ACTIVE] = not is_active
def _on_configure_plugin(self, _widget): def _on_configure_plugin(self, _widget):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment