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

[tor-commits] [torbutton/master] Do versioncheck at startup regardless of session restore status.



commit 5f3db1242d318713ac2848cac16692a9d41e42c4
Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date:   Sun Oct 23 21:09:18 2011 -0700

    Do versioncheck at startup regardless of session restore status.
---
 src/chrome/content/torbutton.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 966e574..6e076a9 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -2908,9 +2908,10 @@ function torbutton_set_launch_state(state, session_restore) {
         torbutton_enable_tor(true);
         torbutton_log(3, "Tor state updated.");
 
+        torbutton_do_versioncheck();
+        
         // Load our homepage again. We just killed it via the toggle.
         if (!session_restore) {
-          torbutton_do_versioncheck();
           torbutton_reload_homepage();
         }
       } else {
@@ -2921,10 +2922,11 @@ function torbutton_set_launch_state(state, session_restore) {
 
         if(state) torbutton_enable_tor(true);
         else  torbutton_disable_tor();
+        
+        torbutton_do_versioncheck();
 
         // Load our homepage again. We just killed it via the toggle.
         if (!session_restore) {
-            torbutton_do_versioncheck();
             torbutton_reload_homepage();
         }
     }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits