Fix setting sort order on Library panel at startup #91

Closed
opened 2023-01-18 17:25:10 +01:00 by coderkun · 2 comments
coderkun commented 2023-01-18 17:25:10 +01:00 (Migrated from gitlab.com)

Fix the following error that occurs at startup if a any sort option is selected on the Library panel that is not the default one:

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 133, in __init__
    self._library_panel.set_sort_order(self._settings.get_enum(Window.SETTING_SORT_ORDER))
  File "/home/oliver/Dokumente/Coding/mcg/install/share/mcg/mcg/librarypanel.py", line 392, in set_sort_order
    button = self._toolbar_sort_buttons[sort]
AttributeError: 'LibraryPanel' object has no attribute '_toolbar_sort_buttons'
Fix the following error that occurs at startup if a any sort option is selected on the Library panel that is not the default one: 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 133, in __init__ self._library_panel.set_sort_order(self._settings.get_enum(Window.SETTING_SORT_ORDER)) File "/home/oliver/Dokumente/Coding/mcg/install/share/mcg/mcg/librarypanel.py", line 392, in set_sort_order button = self._toolbar_sort_buttons[sort] AttributeError: 'LibraryPanel' object has no attribute '_toolbar_sort_buttons'
coderkun commented 2023-01-18 17:25:10 +01:00 (Migrated from gitlab.com)

assigned to @coderkun

assigned to @coderkun
coderkun commented 2023-01-18 17:27:03 +01:00 (Migrated from gitlab.com)

changed the description

changed the description
Sign in to join this conversation.
No description provided.