destructure keybind output

This commit is contained in:
Araxeus
2021-05-10 16:53:57 +03:00
parent 0eca30367f
commit 580caeffb9
2 changed files with 4 additions and 4 deletions

View File

@ -64,8 +64,8 @@ async function promptGlobalShortcuts(win, options, item) {
}, win)
if (output) {
for (const keybindObject of output) {
options.globalShortcuts[keybindObject.value] = keybindObject.accelerator;
for (const { value, accelerator } of output) {
options.globalShortcuts[value] = accelerator;
}
setOptions("precise-volume", options);