mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 19:31:46 +00:00
lint
This commit is contained in:
6
index.js
6
index.js
@ -348,10 +348,10 @@ app.on("ready", () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if(config.get("options.hideMenu") && !config.get("options.hideMenuWarned")) {
|
if (config.get("options.hideMenu") && !config.get("options.hideMenuWarned")) {
|
||||||
electron.dialog.showMessageBox(mainWindow, {
|
electron.dialog.showMessageBox(mainWindow, {
|
||||||
type: 'info',
|
type: 'info', title: 'Hide Menu Enabled',
|
||||||
title: 'Hide Menu Enabled', message: "Menu is hidden, use 'Alt' to show it (or 'Escape' if using in-app-menu)"
|
message: "Menu is hidden, use 'Alt' to show it (or 'Escape' if using in-app-menu)"
|
||||||
});
|
});
|
||||||
config.set("options.hideMenuWarned", true);
|
config.set("options.hideMenuWarned", true);
|
||||||
}
|
}
|
||||||
|
|||||||
7
menu.js
7
menu.js
@ -95,10 +95,11 @@ const mainMenuTemplate = (win) => {
|
|||||||
checked: config.get("options.hideMenu"),
|
checked: config.get("options.hideMenu"),
|
||||||
click: (item) => {
|
click: (item) => {
|
||||||
config.set("options.hideMenu", item.checked);
|
config.set("options.hideMenu", item.checked);
|
||||||
if(item.checked && !config.get("options.hideMenuWarned")) {
|
if (item.checked && !config.get("options.hideMenuWarned")) {
|
||||||
dialog.showMessageBox(win, {
|
dialog.showMessageBox(win, {
|
||||||
type: 'info',
|
type: 'info', title: 'Hide Menu Enabled',
|
||||||
title: 'Hide Menu Enabled', message: "Menu will be hidden on next launch, use 'Alt' to show it (or 'Escape' if using in-app-menu)"});
|
message: "Menu will be hidden on next launch, use 'Alt' to show it (or 'Escape' if using in-app-menu)"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user