Skip to content

Commit

Permalink
Allow changing the default protocol (#15879)
Browse files Browse the repository at this point in the history
  • Loading branch information
azadi committed May 2, 2016
1 parent bfa822d commit 04fd3d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chrome/content/emailwizard.js
Expand Up @@ -144,6 +144,9 @@ if(!org.torbirdy.emailwizard) org.torbirdy.emailwizard = new function() {
document.getElementById("provisioner_button").disabled = true;
document.getElementById("provisioner_button").hidden = true;
}
// 0 is for POP3 (default), 1 is for IMAP. See emailwizard.xul and prefs.js.
var selectProtocol = prefs.getIntPref("extensions.torbirdy.defaultprotocol")
document.getElementById("torbirdy-protocol").selectedIndex = selectProtocol;
};

return pub;
Expand Down
1 change: 1 addition & 0 deletions defaults/preferences/prefs.js
Expand Up @@ -10,3 +10,4 @@ pref("extensions.torbirdy.whonix_run", true);
pref("extensions.torbirdy.info_run", false);
pref("extensions.torbirdy.emailwizard", false);
pref("extensions.torbirdy.fetchall", false);
pref("extensions.torbirdy.defaultprotocol", 0); // 0 - POP3, 1 - IMAP

0 comments on commit 04fd3d8

Please sign in to comment.