progress status and progress communication done

This commit is contained in:
2024-01-12 12:09:28 +01:00
parent 4569d35a65
commit 756ae1be58
7 changed files with 122 additions and 44 deletions

View File

@@ -36,3 +36,19 @@ window.addEventListener("logout", async (e) => {
window.addEventListener("guest-login", async (e) => {
await ipcRenderer.invoke("ezpplauncher:guestlogin");
});
window.addEventListener("launch", async (e) => {
await ipcRenderer.invoke("ezpplauncher:launch");
});
ipcRenderer.addListener("ezpplauncher:launchstatus", (e, args) => {
window.dispatchEvent(
new CustomEvent("launchStatusUpdate", { detail: args }),
);
});
ipcRenderer.addListener("ezpplauncher:launchprogress", (e, args) => {
window.dispatchEvent(
new CustomEvent("launchProgressUpdate", { detail: args }),
);
});