mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
Merge branch 'master' into custom-electron-prompt
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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"]) {
|
||||
|
||||
Reference in New Issue
Block a user