1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 10:07:59 +01:00

Don't show the "all" item in the sanitize dialog.

This commit is contained in:
Kris Maglione
2010-10-14 04:18:00 -04:00
parent 3f42eee0db
commit cd60cf81f6
4 changed files with 3 additions and 6 deletions

View File

@@ -31,10 +31,6 @@ const AutoCommands = Module("autocommands", {
* @param {string} cmd The Ex command to run.
*/
add: function (events, regex, cmd) {
if (typeof events == "string") {
events = events.split(",");
dactyl.log("DEPRECATED: the events list arg to autocommands.add() should be an array of event names");
}
events.forEach(function (event) {
this._store.push(AutoCommand(event, Option.parseRegex(regex), cmd));
}, this);

View File

@@ -525,7 +525,7 @@ lookup:
let file = io.File(filename);
dactyl.assert(!file.exists() || args.bang,
"E189: " + filename.quote() + " exists (add ! to override)");
"E189: " + filename.quote() + " exists (add ! to override)");
// TODO: Use a set/specifiable list here:
let lines = [cmd.serialize().map(commands.commandToString) for (cmd in commands) if (cmd.serialize)];

View File

@@ -2,6 +2,7 @@ from mercurial import util
import os
def fix_symlinks(repo, hooktype, parent1, **kwargs):
print map(repr, (repo, hooktype, parent1, kwargs))
revert = hooktype in ('precommit', 'preupdate')
ctxt = repo[parent1]
for filename in ctxt:

View File

@@ -130,7 +130,7 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
function ourItems(persistent) [
item for (item in self.itemMap)
if (!item.builtin && (!persistent || item.persistent))
if (!item.builtin && (!persistent || item.persistent) && item.name !== "all")
];
function prefOverlay(branch, persistent, local) update(Object.create(local), {