aboutsummaryrefslogtreecommitdiffstats
path: root/src/chrome/content
diff options
context:
space:
mode:
authornickdu <nick@nickdu.com>2012-05-10 15:25:03 +1000
committernickdu <nick@nickdu.com>2012-05-10 15:25:03 +1000
commit9b0daa26dbaebb70723d309f0bc4fb62bd3a0043 (patch)
tree8573255a41a5496efd8d7728bb25484a3b552371 /src/chrome/content
parent418e6ab9be9945ad0865a5d5760296bfb4e7dc71 (diff)
downloadMultiproxy-Switch-9b0daa26dbaebb70723d309f0bc4fb62bd3a0043.tar.gz
Fix when browser starts up proxy is not set correctly issue
Diffstat (limited to 'src/chrome/content')
-rw-r--r--src/chrome/content/proxy.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/chrome/content/proxy.js b/src/chrome/content/proxy.js
index 8c94d0f..85664dc 100644
--- a/src/chrome/content/proxy.js
+++ b/src/chrome/content/proxy.js
@@ -65,9 +65,11 @@ function mproxy_initProxy(event){
//Populate Proxy List
mproxy_populateList();
- //Set Last Proxy Selected
- if(gSwitchP_List != null)
- gSwitchP_LastItem = gSwitchP_List.selectedItem;
+ //Set Last Proxy Selected
+ if (gSwitchP_List != null) {
+ gSwitchP_List.selectedItem.value = gSwitchP_Prefs.getCharPref("mproxy.proxy.current");
+ gSwitchP_LastItem = gSwitchP_List.selectedItem;
+ }
//Add Preferences Listener
var oProxyObserver = {
@@ -96,7 +98,7 @@ oPrefBranch.addObserver("mproxy.proxy.rdf.lastupdate", oProxyObserver, false);
// Start Anon Rotation
//setTimeout("mproxy_anon_nextProxy()", 1000);
-
+ mproxy_setProxy(true);
gSwitchP_Loaded = true;
}
}