1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 22:52:28 +01:00

Add +purgecaches startup flag. Process startup flags in :restart. Don't purge caches on :rehash.

This commit is contained in:
Kris Maglione
2011-10-01 02:36:27 -04:00
parent 119f117e4d
commit 2f776eebe7
7 changed files with 80 additions and 38 deletions

View File

@@ -739,7 +739,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
return xmlhttp;
}
catch (e) {
util.dactyl.log(_("error.cantOpen", String.quote(url), e), 1);
if (!params.quiet)
util.dactyl.log(_("error.cantOpen", String.quote(url), e), 1);
return null;
}
},
@@ -1183,7 +1184,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
rehash: function (args) {
storage.session.commandlineArgs = args;
this.timeout(function () {
cache.flushAll();
this.flushCache();
this.rehashing = true;
let addon = config.addon;
addon.userDisabled = true;