From a1c8dd0d8bee88c418d3a068df130eae62602985 Mon Sep 17 00:00:00 2001 From: "A. Reit" Date: Wed, 9 Aug 2023 13:31:29 +0200 Subject: [PATCH] preferences: Fix error after changes to Plugins section The Plugins section in the preferences dialog allows to enable/disable plugins. After making changes and pressing OK or Apply in the preferences dialog, an error occurred. The error occurs because of a change of the return type of SpyderConfigPage.create_checkbox() (see PR20926 [1]). [1] https://github.com/spyder-ide/spyder/pull/20926 --- spyder/api/plugin_registration/_confpage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spyder/api/plugin_registration/_confpage.py b/spyder/api/plugin_registration/_confpage.py index fc0e4253ea1..0aaebc65c9e 100644 --- a/spyder/api/plugin_registration/_confpage.py +++ b/spyder/api/plugin_registration/_confpage.py @@ -57,7 +57,7 @@ def setup_page(self): ) ) - self.plugins_checkboxes[plugin_name] = (cb, plugin_state) + self.plugins_checkboxes[plugin_name] = (cb.checkbox, plugin_state) # ------------------ External plugins --------------------------------- for plugin_name in self.plugin.all_external_plugins: