Skip to content

Commit

Permalink
preferences: Fix error after changes to Plugins section
Browse files Browse the repository at this point in the history
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] spyder-ide#20926
  • Loading branch information
rear1019 committed Aug 10, 2023
1 parent d9add65 commit ab3e00a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spyder/api/plugin_registration/_confpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -86,7 +86,7 @@ def setup_page(self):
)
)

self.plugins_checkboxes[plugin_name] = (cb, plugin_state)
self.plugins_checkboxes[plugin_name] = (cb.checkbox, plugin_state)

# Sort elements by title for easy searching
collator = Collator()
Expand Down

0 comments on commit ab3e00a

Please sign in to comment.