diff options
Diffstat (limited to 'muttator/content/config.js')
-rw-r--r-- | muttator/content/config.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/muttator/content/config.js b/muttator/content/config.js index 318c31ef..3ee2f9b4 100644 --- a/muttator/content/config.js +++ b/muttator/content/config.js @@ -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() + }); + + //}}} } }; //}}} |