Fix resumeOnStart option

This commit is contained in:
TC
2021-03-04 23:09:01 +01:00
parent 0dcf820944
commit f50bd32fa3
5 changed files with 14 additions and 5 deletions

View File

@ -3,6 +3,11 @@ const Store = require("electron-store");
const defaults = require("./defaults");
const migrations = {
">=1.11.0": (store) => {
if (store.get("options.resumeOnStart") === undefined) {
store.set("options.resumeOnStart", true);
}
},
">=1.7.0": (store) => {
const enabledPlugins = store.get("plugins");
if (!Array.isArray(enabledPlugins)) {