1
0

plugins: enable & disable methods

This commit is contained in:
ThomasV
2016-01-19 10:03:05 +01:00
parent 82bfbdcc3c
commit 4122c108fc
2 changed files with 22 additions and 12 deletions

View File

@@ -2903,7 +2903,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
widget.setEnabled(bool(p and p.is_enabled()))
def do_toggle(cb, name, i):
p = plugins.toggle_enabled(self.config, name)
p = plugins.toggle(name)
cb.setChecked(bool(p))
enable_settings_widget(p, name, i)
run_hook('init_qt', self.gui_object)