mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
fix: fix #7
This commit is contained in:
@ -65,7 +65,7 @@ const defaultConfig = {
|
||||
proxy: '',
|
||||
startingPage: '',
|
||||
overrideUserAgent: false,
|
||||
themes: {} as string[],
|
||||
themes: [] as string[],
|
||||
},
|
||||
'plugins': {
|
||||
// Enabled plugins
|
||||
|
||||
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