mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 20:01:47 +00:00
fix bug when loading window with no connection
This commit is contained in:
@ -36,6 +36,8 @@ module.exports = (winImport) => {
|
|||||||
done = true;
|
done = true;
|
||||||
|
|
||||||
setApplicationMenu(win);
|
setApplicationMenu(win);
|
||||||
|
//fix bug when loading window with no internet connection
|
||||||
|
switchMenuVisibility();
|
||||||
|
|
||||||
//register keyboard shortcut && hide menu if hideMenu is enabled
|
//register keyboard shortcut && hide menu if hideMenu is enabled
|
||||||
if (config.get("options.hideMenu")) {
|
if (config.get("options.hideMenu")) {
|
||||||
@ -47,7 +49,7 @@ module.exports = (winImport) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
let visible = true;
|
let visible = false;
|
||||||
function switchMenuVisibility() {
|
function switchMenuVisibility() {
|
||||||
visible = !visible;
|
visible = !visible;
|
||||||
win.webContents.send("updateMenu", visible);
|
win.webContents.send("updateMenu", visible);
|
||||||
|
|||||||
Reference in New Issue
Block a user