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