mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
fix in-app-menu hideMenu on launch
This commit is contained in:
@ -38,17 +38,15 @@ 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")) {
|
||||||
visible = false;
|
switchMenuVisibility();
|
||||||
electronLocalshortcut.register(win, "Esc", () => {
|
electronLocalshortcut.register(win, "Esc", () => {
|
||||||
switchMenuVisibility();
|
switchMenuVisibility();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// fix bug with menu not applying on start
|
// fix bug with menu not applying on start when no internet connection available
|
||||||
setMenuVisibility(visible);
|
setMenuVisibility(visible);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user