From f5758bfe939d60f7d9d562af17279a245e87a977 Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Wed, 15 Mar 2023 23:27:36 +0200 Subject: [PATCH] add defaults and migrations --- config/defaults.js | 1 + config/store.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/config/defaults.js b/config/defaults.js index d01d059a..fbefb7e1 100644 --- a/config/defaults.js +++ b/config/defaults.js @@ -16,6 +16,7 @@ const defaultConfig = { autoResetAppCache: false, resumeOnStart: true, proxy: "", + startingPage: "Home", }, plugins: { // Enabled plugins diff --git a/config/store.js b/config/store.js index 07984820..43f85bbc 100644 --- a/config/store.js +++ b/config/store.js @@ -10,6 +10,9 @@ const setDefaultPluginOptions = (store, plugin) => { const migrations = { ">=1.20.0": (store) => { + // used only to make the radio button checked in the menu + store.set('options.startingPage', "Home"); + setDefaultPluginOptions(store, "visualizer"); if (store.get("plugins.notifications.toastStyle") === undefined) {