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

[or-cvs] r15024: Fucking MacOS. (torbutton/trunk/src/chrome/content)



Author: mikeperry
Date: 2008-06-08 02:58:56 -0400 (Sun, 08 Jun 2008)
New Revision: 15024

Modified:
   torbutton/trunk/src/chrome/content/torbutton.js
Log:

Fucking MacOS.



Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js	2008-06-08 06:54:00 UTC (rev 15023)
+++ torbutton/trunk/src/chrome/content/torbutton.js	2008-06-08 06:58:56 UTC (rev 15024)
@@ -1938,6 +1938,13 @@
         torbutton_unique_pref_observer.unregister();
         torbutton_uninstall_observer.unregister();
         torbutton_http_observer.unregister();
+
+        if(m_tb_is_main_window) { // main window not reset above
+            // This happens on Mac OS because they allow firefox
+            // to still persist without a navigator window
+            m_tb_prefs.setBoolPref("extensions.torbutton.startup", true);
+            m_tb_is_main_window = false;
+        }
     }
 }