Cutting down the number of times the login dialog is needlessly displayed
authorepage <eopage@byu.net>
Tue, 20 Oct 2009 12:32:22 +0000 (12:32 +0000)
committerepage <eopage@byu.net>
Tue, 20 Oct 2009 12:32:22 +0000 (12:32 +0000)
git-svn-id: file:///svnroot/gc-dialer/trunk@548 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

src/dc_glade.py
support/builddeb.py

index 73a6814..6a7f8e1 100755 (executable)
@@ -73,6 +73,7 @@ class Dialcentral(object):
        ACCOUNT_TAB = 4
 
        NULL_BACKEND = 0
+       # 1 Was GrandCentral support so the gap was maintained for compatibility
        GV_BACKEND = 2
        BACKENDS = (NULL_BACKEND, GV_BACKEND)
 
@@ -569,8 +570,15 @@ class Dialcentral(object):
                """
                @note Thread Agnostic
                """
+               # Because we now only support GVoice, if there are user credentials,
+               # always assume its using the GVoice backend
+               if self._credentials[0] and self._credentials[1]:
+                       backend = self.GV_BACKEND
+               else:
+                       backend = self.NULL_BACKEND
+
                config.add_section(constants.__pretty_app_name__)
-               config.set(constants.__pretty_app_name__, "active", str(self._selectedBackendId))
+               config.set(constants.__pretty_app_name__, "active", str(backend))
                config.set(constants.__pretty_app_name__, "orientation", str(int(gtk_toolbox.get_screen_orientation())))
                for i, value in enumerate(self._credentials):
                        blob = base64.b64encode(value)
index 844815f..b05fd4f 100755 (executable)
@@ -32,6 +32,7 @@ __build__ = constants.__build__
 __changelog__ = """
 1.0.8
 * Sped up login time by delay loading contact list
+* UI Tweak: Cut down the number of times the login dialog is needlessly displayed
 
 1.0.7
 * Sped up various login cases