mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 12:07:57 +01:00
Don't show the "all" item in the sanitize dialog.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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), {
|
||||
|
||||
Reference in New Issue
Block a user