file update check, also on launch

This commit is contained in:
2024-01-12 16:10:19 +01:00
parent 2c6b51cbb2
commit d9fec1193e
5 changed files with 76 additions and 5 deletions

View File

@@ -59,6 +59,12 @@ window.addEventListener("settings-set", async (e) => {
await ipcRenderer.invoke("ezpplauncher:settings-set", e.detail);
});
ipcRenderer.addListener("ezpplauncher:launchabort", (e, args) => {
window.dispatchEvent(
new CustomEvent("launch-abort"),
);
});
ipcRenderer.addListener("ezpplauncher:alert", (e, args) => {
window.dispatchEvent(
new CustomEvent("alert", { detail: args }),