Fixing paste option in tray

pull/94/head
Andrew 3 years ago
parent 7656081ec8
commit 540f57b2eb

@ -94,9 +94,13 @@ app.whenReady().then(() => {
win.loadFile("html/index.html");
win.show();
indexIsOpen = true;
setTimeout(() => {
win.webContents.send("link", text);
}, 1200);
let sent = false;
ipcMain.on("ready-for-links", () => {
if (!sent) {
win.webContents.send("link", text);
sent = true;
}
});
}
},
},

@ -177,6 +177,8 @@ cp.exec("yt-dlp --version", (error, stdout, stderr) => {
);
getId("pasteUrl").style.display = "inline-block";
console.log("yt-dlp bin Path: " + ytDlp);
ipcRenderer.send("ready-for-links")
}
});
} else {
@ -186,6 +188,7 @@ cp.exec("yt-dlp --version", (error, stdout, stderr) => {
localStorage.setItem("ytdlp", ytDlp);
getId("pasteUrl").style.display = "inline-block";
console.log("yt-dlp bin Path: " + ytDlp);
ipcRenderer.send("ready-for-links")
}
});

Loading…
Cancel
Save