[orca/new-settings] Adjust fix for prefs dialog not appearing upon first start for yaml backend.



commit f089c0aff1c4719167b31e959ed1318eba998ee5
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Thu Oct 28 11:09:57 2010 -0400

    Adjust fix for prefs dialog not appearing upon first start for yaml backend.

 src/orca/backends/yaml_backend.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/backends/yaml_backend.py b/src/orca/backends/yaml_backend.py
index f239656..eba3789 100644
--- a/src/orca/backends/yaml_backend.py
+++ b/src/orca/backends/yaml_backend.py
@@ -129,11 +129,11 @@ class Backend:
     def isFirstStart(self):
         """ Check if we're in first start. """
  
-        if not self.general:
-            if os.path.exists(self.settingsFile):
-                self._getSettings()
+        if not os.path.exists(self.settingsFile):
+            return True
 
-        return self.general.get('firstStart', True)
+        generalSettings = self.getGeneral()
+        return generalSettings.get('firstStart', True)
 
     def setFirstStart(self, value=False):
         """Set firstStart. This user-configurable settting is primarily



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