mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-04 02:45:45 +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:
@@ -1,3 +1,7 @@
|
||||
2009-XX-XX
|
||||
* version 0.6a1pre
|
||||
* add 'online' option
|
||||
|
||||
2008-03-29
|
||||
* version 0.5
|
||||
* fixes for recent TB nightly changes
|
||||
|
||||
@@ -263,10 +263,33 @@ const config = { //{{{
|
||||
liberator.loadModule("hints", Hints);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
////////////////////// COMMANDS ////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////{{{
|
||||
|
||||
commands.add(["pref[erences]", "prefs"],
|
||||
"Show " + config.hostApplication + " preferences",
|
||||
function () { window.openOptionsDialog(); },
|
||||
{ argCount: "0" });
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
////////////////////// OPTIONS /////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////{{{
|
||||
|
||||
options.add(["online"],
|
||||
"Set the 'work offline' option",
|
||||
"boolean", true,
|
||||
{
|
||||
setter: function (value)
|
||||
{
|
||||
if (MailOfflineMgr.isOnline() != value)
|
||||
MailOfflineMgr.toggleOfflineStatus();
|
||||
return value;
|
||||
},
|
||||
getter: function () MailOfflineMgr.isOnline()
|
||||
});
|
||||
|
||||
//}}}
|
||||
}
|
||||
}; //}}}
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ const config = { //{{{
|
||||
delete img;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
////////////////////// MAPPINGS ////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////{{{
|
||||
|
||||
@@ -470,8 +470,8 @@ const config = { //{{{
|
||||
setter: function (value)
|
||||
{
|
||||
const ioService = services.get("io");
|
||||
ioService.offline = !value;
|
||||
gPrefService.setBoolPref("browser.offline", ioService.offline);
|
||||
if (ioService.offline == value)
|
||||
BrowserOffline.toggleOfflineStatus();
|
||||
return value;
|
||||
},
|
||||
getter: function () !services.get("io").offline
|
||||
@@ -504,8 +504,9 @@ const config = { //{{{
|
||||
options.add(["urlseparator"],
|
||||
"Set the separator regexp used to separate multiple URL args",
|
||||
"string", ",\\s");
|
||||
|
||||
//}}}
|
||||
}
|
||||
//}}}
|
||||
}; //}}}
|
||||
|
||||
// vim: set fdm=marker sw=4 ts=4 et:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user