[lyrics] Romanization toggle for Genius plugin (#1039)

This commit is contained in:
Derek Chen
2023-03-14 10:16:41 -05:00
committed by GitHub
parent 476e13de9f
commit 69cd5ed613
2 changed files with 74 additions and 11 deletions

View File

@ -0,0 +1,17 @@
const { setOptions } = require("../../config/plugins");
const { toggleRomanized } = require("./back");
module.exports = (win, options, refreshMenu) => {
return [
{
label: "Romanized Lyrics",
type: "checkbox",
checked: options.romanizedLyrics,
click: (item) => {
options.romanizedLyrics = item.checked;
setOptions('lyrics-genius', options);
toggleRomanized();
},
},
];
};