mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix memory leak +
in-app-menu updates menu only if needed
This commit is contained in:
6
index.js
6
index.js
@ -152,7 +152,13 @@ function createMainWindow() {
|
||||
return win;
|
||||
}
|
||||
|
||||
let createdWindow = false;
|
||||
app.on("browser-window-created", (event, win) => {
|
||||
//Ensure listeners aren't registered when creating input dialog
|
||||
if(createdWindow){
|
||||
return;
|
||||
}
|
||||
createdWindow = true;
|
||||
loadPlugins(win);
|
||||
|
||||
win.webContents.on("did-fail-load", () => {
|
||||
|
||||
Reference in New Issue
Block a user