Fix setting sort type on Library panel at startup #95

Closed
opened 2023-02-28 12:53:55 +01:00 by coderkun · 2 comments
coderkun commented 2023-02-28 12:53:55 +01:00 (Migrated from gitlab.com)

Fix the following error that occurs at startup if the descending sort option is selected on the Library panel:

Traceback (most recent call last):
  File "/home/oliver/Dokumente/Coding/mcg/install/share/mcg/mcg/application.py", line 46, in do_activate
    self._window = Window(self, Application.TITLE, self._settings)
  File "/home/oliver/Dokumente/Coding/mcg/install/share/mcg/mcg/window.py", line 134, in __init__
    self._library_panel.set_sort_type(self._settings.get_boolean(Window.SETTING_SORT_TYPE))
  File "/home/oliver/Dokumente/Coding/mcg/install/share/mcg/mcg/librarypanel.py", line 414, in set_sort_type
    self.toolbar_sort_order_button.set_active(False)
AttributeError: 'LibraryPanel' object has no attribute 'toolbar_sort_order_button'
Fix the following error that occurs at startup if the descending sort option is selected on the Library panel: Traceback (most recent call last): File "/home/oliver/Dokumente/Coding/mcg/install/share/mcg/mcg/application.py", line 46, in do_activate self._window = Window(self, Application.TITLE, self._settings) File "/home/oliver/Dokumente/Coding/mcg/install/share/mcg/mcg/window.py", line 134, in __init__ self._library_panel.set_sort_type(self._settings.get_boolean(Window.SETTING_SORT_TYPE)) File "/home/oliver/Dokumente/Coding/mcg/install/share/mcg/mcg/librarypanel.py", line 414, in set_sort_type self.toolbar_sort_order_button.set_active(False) AttributeError: 'LibraryPanel' object has no attribute 'toolbar_sort_order_button'
coderkun commented 2023-02-28 12:53:55 +01:00 (Migrated from gitlab.com)

assigned to @coderkun

assigned to @coderkun
coderkun commented 2023-02-28 12:56:00 +01:00 (Migrated from gitlab.com)

mentioned in commit 21bd0f5832

mentioned in commit 21bd0f58321bd7b620c4ee385836bf051c761190
Sign in to join this conversation.
No description provided.