From 163ebcd95ae2f4f6c11fc0eb6acf31c456512a2c Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Thu, 27 Sep 2018 11:39:01 +0200 Subject: [PATCH] Connect clicked signal instead of pressed, fix always pressed button after error --- picard/ui/options/plugins.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/picard/ui/options/plugins.py b/picard/ui/options/plugins.py index 0edeceda9..12c9eadba 100644 --- a/picard/ui/options/plugins.py +++ b/picard/ui/options/plugins.py @@ -442,7 +442,7 @@ class PluginsOptionsPage(OptionsPage): if newhandler is not None: signal.connect(newhandler) - reconnect(item.button_enable.pressed, toggle_enable) + reconnect(item.button_enable.clicked, toggle_enable) install_enabled = not item.is_installed or bool(item.new_version) if item.upgrade_to_version: @@ -458,19 +458,19 @@ class PluginsOptionsPage(OptionsPage): def uninstall_processor(): self.uninstall_plugin(item) - reconnect(item.button_uninstall.pressed, uninstall_processor) + reconnect(item.button_uninstall.clicked, uninstall_processor) if install_enabled: if item.new_version is not None: def download_and_update(): self.download_plugin(item, update=True) - reconnect(item.button_install.pressed, download_and_update) + reconnect(item.button_install.clicked, download_and_update) else: def download_and_install(): self.download_plugin(item) - reconnect(item.button_install.pressed, download_and_install) + reconnect(item.button_install.clicked, download_and_install) if item.is_installed: item.button_uninstall.setEnabled(True)