mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
fix: fix #7
This commit is contained in:
5
menu.ts
5
menu.ts
@ -150,7 +150,7 @@ export const mainMenuTemplate = (win: BrowserWindow): MenuTemplate => {
|
||||
{
|
||||
label: 'No theme',
|
||||
type: 'radio',
|
||||
checked: !config.get('options.themes'), // Todo rename "themes"
|
||||
checked: config.get('options.themes').length === 0, // Todo rename "themes"
|
||||
click() {
|
||||
config.set('options.themes', []);
|
||||
},
|
||||
@ -158,8 +158,7 @@ export const mainMenuTemplate = (win: BrowserWindow): MenuTemplate => {
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: 'Import custom CSS file',
|
||||
type: 'radio',
|
||||
checked: false,
|
||||
type: 'normal',
|
||||
async click() {
|
||||
const { filePaths } = await dialog.showOpenDialog({
|
||||
filters: [{ name: 'CSS Files', extensions: ['css'] }],
|
||||
|
||||
Reference in New Issue
Block a user