mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +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,
|
||||
label: theme,
|
||||
async click() {
|
||||
@ -257,11 +257,11 @@ export const mainMenuTemplate = async (
|
||||
});
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
})),
|
||||
})) ?? []),
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: t(
|
||||
|
||||
Reference in New Issue
Block a user