Disable autosave in the upgrade wizard

To address @pmario's suggestion here: https://github.com/Jermolene/TiddlyWiki5/issues/4879#issuecomment-704320381
This commit is contained in:
jeremy@jermolene.com 2020-10-26 17:28:57 +00:00
parent 0ce1843070
commit 3153c588ec
2 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,7 @@ SaverHandler.prototype.saveWiki = function(options) {
var self = this,
method = options.method || "save";
// Ignore autosave if disabled
if(method === "autosave" && this.wiki.getTiddlerText(this.titleAutoSave,"yes") !== "yes") {
if(method === "autosave" && ($tw.config.disableAutoSave || this.wiki.getTiddlerText(this.titleAutoSave,"yes") !== "yes")) {
return false;
}
var variables = options.variables || {},

View File

@ -20,6 +20,7 @@ exports.synchronous = true;
exports.startup = function() {
// See $tw.utils.decryptStoreAreaInteractive() in $:/core/modules/utils/crypto.js
$tw.config.usePasswordVault = true;
$tw.config.disableAutoSave = true;
};
})();