This commit is contained in:
Araxeus
2021-04-30 03:22:36 +03:00
parent 964974c142
commit e456035f29

View File

@ -13,8 +13,6 @@ function setOption(options, key = null, newValue = null) {
module.exports = (win, options) => [ module.exports = (win, options) => [
{ {
label: "Set Global Song Controls", label: "Set Global Song Controls",
type: "checkbox",
checked: true,
click: () => promptKeybind(options, win) click: () => promptKeybind(options, win)
}, },
{ {
@ -25,6 +23,7 @@ module.exports = (win, options) => [
} }
]; ];
//will not be needed if globalKeybinds will be an object
function getGlobalKeybinds(options) { function getGlobalKeybinds(options) {
let playPause, next, previous; let playPause, next, previous;
if (options.global) { if (options.global) {
@ -44,6 +43,7 @@ function getGlobalKeybinds(options) {
return { playPause, next, previous }; return { playPause, next, previous };
} }
//will not be needed if globalKeybinds will be an object
function setGlobalKeybinds(options, newShortcuts) { function setGlobalKeybinds(options, newShortcuts) {
let didSet = {}; let didSet = {};
for (const shortcut in newShortcuts) { for (const shortcut in newShortcuts) {