1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 06:25: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:
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

@@ -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()
});
//}}}
}
}; //}}}