[pitivi] prefs: Hardcode the order of the prefs sections.



commit ab8c30e104bf046317e972b06a7e2b7f4619e2f3
Author: kiren <kirenpillay1 gmail com>
Date:   Sat Nov 9 10:57:45 2019 +0200

    prefs: Hardcode the order of the prefs sections.
    
    Fixes #2267

 pitivi/dialogs/prefs.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/pitivi/dialogs/prefs.py b/pitivi/dialogs/prefs.py
index 21364d2c..c0ad7705 100644
--- a/pitivi/dialogs/prefs.py
+++ b/pitivi/dialogs/prefs.py
@@ -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):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]