1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-30 19:25:47 +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

@@ -14,6 +14,8 @@ defineModule("options", {
require: ["contexts", "messages", "storage"]
}, this);
this.lazyRequire("config", ["config"]);
/** @scope modules */
let ValueError = Class("ValueError", ErrorBase);
@@ -947,7 +949,7 @@ var Options = Module("options", {
setPref: deprecated("prefs.set", function setPref() prefs.set.apply(prefs, arguments)),
withContext: deprecated("prefs.withContext", function withContext() prefs.withContext.apply(prefs, arguments)),
cleanupPrefs: Class.Memoize(function () localPrefs.Branch("cleanup.option.")),
cleanupPrefs: Class.Memoize(function () config.prefs.Branch("cleanup.option.")),
cleanup: function cleanup(reason) {
if (~["disable", "uninstall"].indexOf(reason))