Merge branch 'master' into custom-electron-prompt

This commit is contained in:
Araxeus
2021-10-19 15:55:00 +03:00
committed by GitHub
20 changed files with 834 additions and 229 deletions

View File

@ -46,7 +46,8 @@ const defaultConfig = {
discord: {
enabled: false,
activityTimoutEnabled: true, // if enabled, the discord rich presence gets cleared when music paused after the time specified below
activityTimoutTime: 10 * 60 * 1000 // 10 minutes
activityTimoutTime: 10 * 60 * 1000, // 10 minutes
listenAlong: true, // add a "listen along" button to rich presence
},
notifications: {
enabled: false,

View File

@ -3,8 +3,12 @@ const Store = require("electron-store");
const defaults = require("./defaults");
const migrations = {
/** Update shortcuts format from array to object */
">=1.12.0": (store) => {
">=1.13.0": (store) => {
if (store.get("plugins.discord.listenAlong") === undefined) {
store.set("plugins.discord.listenAlong", true);
}
},
">=1.12.0": (store) => {
const options = store.get("plugins.shortcuts")
let updated = false;
for (const optionType of ["global", "local"]) {