mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix in-app-menu hideMenu on launch
This commit is contained in:
@ -38,17 +38,15 @@ module.exports = (winImport) => {
|
||||
done = true;
|
||||
|
||||
setApplicationMenu(win);
|
||||
//fix bug when loading window with no internet connection
|
||||
switchMenuVisibility();
|
||||
|
||||
//register keyboard shortcut && hide menu if hideMenu is enabled
|
||||
if (config.get("options.hideMenu")) {
|
||||
visible = false;
|
||||
switchMenuVisibility();
|
||||
electronLocalshortcut.register(win, "Esc", () => {
|
||||
switchMenuVisibility();
|
||||
});
|
||||
}
|
||||
// fix bug with menu not applying on start
|
||||
}
|
||||
// fix bug with menu not applying on start when no internet connection available
|
||||
setMenuVisibility(visible);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user