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:
@@ -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()
|
||||
});
|
||||
|
||||
//}}}
|
||||
}
|
||||
}; //}}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user