diff --git a/src/assets/splash.html b/src/assets/splash.html index ffddd43..ac2e51a 100644 --- a/src/assets/splash.html +++ b/src/assets/splash.html @@ -4,26 +4,59 @@ + -
+
+
+ + + +
diff --git a/src/electron/main.ts b/src/electron/main.ts index 9a4da34..e365f5d 100644 --- a/src/electron/main.ts +++ b/src/electron/main.ts @@ -78,10 +78,6 @@ app.on("ready", async () => { ); - - - - // Create the main window const win = new BrowserWindow({ width: 500, @@ -92,7 +88,7 @@ app.on("ready", async () => { maximizable: false, closable: true, alwaysOnTop: true, - skipTaskbar: true, + // skipTaskbar: true, autoHideMenuBar: true, frame: true, show: false, @@ -149,7 +145,7 @@ app.on("ready", async () => { // ------------------------------------ // HANDLE CLOSE EVENTS // ------------------------------------ - handleCloseEvents(win); + // handleCloseEvents(win); }); @@ -173,28 +169,28 @@ app.on("ready", async () => { // --------------------------- // CUSTOM CLOSE BEHAVIOR // --------------------------- -function handleCloseEvents(window: BrowserWindow) { - let willClose = false; +// function handleCloseEvents(window: BrowserWindow) { +// let willClose = false; - window.on("close", (e) => { - if (willClose) return; +// window.on("close", (e) => { +// if (willClose) return; - e.preventDefault(); - window.hide(); +// e.preventDefault(); +// window.hide(); - if (app.dock) { - app.dock.hide(); - } - }); +// if (app.dock) { +// app.dock.hide(); +// } +// }); - app.on("before-quit", () => { - willClose = true; - }); +// app.on("before-quit", () => { +// willClose = true; +// }); - window.on("show", () => { - willClose = false; - }); -} +// window.on("show", () => { +// willClose = false; +// }); +// } // --------------------------- // GET MAIN WINDOW EXPORT