1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 06:54:12 +01:00

Add an 'online' option to Muttator.

Also changed Vimperator's 'offline' to make use of Firefox's
BrowserOffline.
This commit is contained in:
Doug Kearns
2009-06-14 02:14:03 +10:00
parent c3ef4d18da
commit dbe348687e
4 changed files with 34 additions and 6 deletions

View File

@@ -515,6 +515,7 @@ const config = { //{{{
////////////////////// OPTIONS /////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
// TODO: SB doesn't explicitly support an offline mode. Should we? --djk
options.add(["online"],
"Set the 'work offline' option",
"boolean", true,
@@ -523,8 +524,7 @@ const config = { //{{{
{
const ioService = services.get("io");
ioService.offline = !value;
//gPrefService.setBoolPref("browser.offline", ioService.offline);
gPrefs.setBoolPref("browser.offline", ioService.offline);
options.setPref("browser.offline", ioService.offline);
return value;
},
getter: function () !services.get("io").offline