mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
@ -236,7 +236,7 @@ export const mainMenuTemplate = async (
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
...config.get('options.themes')?.map((theme: string) => ({
|
...(config.get('options.themes')?.map((theme: string) => ({
|
||||||
type: 'normal' as const,
|
type: 'normal' as const,
|
||||||
label: theme,
|
label: theme,
|
||||||
async click() {
|
async click() {
|
||||||
@ -257,11 +257,11 @@ export const mainMenuTemplate = async (
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (response === 1) {
|
if (response === 1) {
|
||||||
config.set('options.themes', config.get('options.themes')?.filter((t) => t !== theme));
|
config.set('options.themes', config.get('options.themes')?.filter((t) => t !== theme) ?? []);
|
||||||
innerRefreshMenu();
|
innerRefreshMenu();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})),
|
})) ?? []),
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
{
|
{
|
||||||
label: t(
|
label: t(
|
||||||
|
|||||||
Reference in New Issue
Block a user