mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
win.once() instead of win.on
This commit is contained in:
@ -41,7 +41,7 @@ module.exports = (winImport) => {
|
||||
});
|
||||
|
||||
//set menu visibility on load
|
||||
win.webContents.on("did-finish-load", () => {
|
||||
win.webContents.once("did-finish-load", () => {
|
||||
// fix bug with menu not applying on start when no internet connection available
|
||||
setMenuVisibility(!config.get("options.hideMenu"));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user