Skip to content
Snippets Groups Projects
Commit 5bd33efb authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Plugins: Disable config dialog button if plugin is not active

parent 30d1d81e
No related branches found
No related tags found
No related merge requests found
...@@ -168,7 +168,7 @@ def _display_installed_plugin_info(self, plugin): ...@@ -168,7 +168,7 @@ def _display_installed_plugin_info(self, plugin):
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 @@ def _installed_plugin_toggled(self, _cell, path): ...@@ -217,6 +217,7 @@ def _installed_plugin_toggled(self, _cell, path):
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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment