Commit ab8c30e1 authored by Kiren Pillay's avatar Kiren Pillay

prefs: Hardcode the order of the prefs sections.

Fixes #2267
parent 43199b29
Pipeline #130150 failed with stages
in 58 seconds
......@@ -88,10 +88,9 @@ class PreferencesDialog(Loggable):
self.factory_settings = builder.get_object("resetButton")
self.restart_warning = builder.get_object("restartWarning")
for section_id in self.settings_sections:
self.add_settings_page(section_id)
self.factory_settings.set_sensitive(self._canReset())
self.add_settings_page('timeline')
self.__add_proxies_section()
self.__add_shortcuts_section()
self.__add_plugin_manager_section()
......@@ -113,9 +112,6 @@ class PreferencesDialog(Loggable):
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
# Public API
@property
def settings_sections(self):
return [section for section in PreferencesDialog.section_names if not section.startswith("_")]
@classmethod
def add_section(cls, section, title):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment