Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in TreeListWidgets.py #12545

Closed
claudiux opened this issue Dec 2, 2024 · 0 comments · Fixed by #12546
Closed

Bug in TreeListWidgets.py #12545

claudiux opened this issue Dec 2, 2024 · 0 comments · Fixed by #12546
Labels

Comments

@claudiux
Copy link
Member

claudiux commented Dec 2, 2024

Distribution

Mint 22

Package version

Cinnamon 6.2.9

Graphics hardware in use

No matters

Frequency

Always

Bug description

When in the settings-schema.json file of a Spice (an applet here) we define a list with "show-buttons" option set to false, an error occurs executing cinnamon-settings applets UUID_of_Spice:

Traceback (most recent call last):
  File "/usr/share/cinnamon/cinnamon-settings/bin/TreeListWidgets.py", line 139, in toggle_checkbox
    self.list_changed()
  File "/usr/share/cinnamon/cinnamon-settings/bin/TreeListWidgets.py", line 335, in list_changed
    self.update_button_sensitivity()
  File "/usr/share/cinnamon/cinnamon-settings/bin/TreeListWidgets.py", line 218, in update_button_sensitivity
    self.remove_button.set_sensitive(False)
    ^^^^^^^^^^^^^^^^^^
AttributeError: 'NewClass' object has no attribute 'remove_button'
Traceback (most recent call last):
  File "/usr/share/cinnamon/cinnamon-settings/bin/TreeListWidgets.py", line 221, in update_button_sensitivity
    self.remove_button.set_sensitive(True)
    ^^^^^^^^^^^^^^^^^^
AttributeError: 'NewClass' object has no attribute 'remove_button'

Steps to reproduce

  1. Install the SpicesUpdate applet (which has some lists with "show-buttons" option set to false.
  2. Execute cinnamon-settings applets SpicesUpdate@claudiux in a terminal.
  3. Open the Applets tab, then check or uncheck a switch next to an applet name.
  4. Wait 10 seconds. The error message appears in the terminal.

Expected behavior

No errors appear. No waiting time to check or uncheck a switch in a list.

Additional information

In /usr/share/cinnamon/cinnamon-settings/bin/TreeListWidgets.py, function def update_button_sensitivity(self, *args):, we don't need to do anything when the “show-buttons” option is set to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant