From 73a6d9972ce315c726c37c8cc343dd5090040c72 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 15 Apr 2025 17:25:13 +0100 Subject: [PATCH] Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/electron-main.ts | 4 ++++ src/store.ts | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/electron-main.ts b/src/electron-main.ts index dcc8a8ef..488ec723 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -371,6 +371,8 @@ if (store.get("disableHardwareAcceleration") === true) { } app.on("ready", async () => { + console.debug("Reached Electron ready state"); + let asarPath: string; try { @@ -460,6 +462,7 @@ app.on("ready", async () => { console.log("No update_base_url is defined: auto update is disabled"); } + console.debug("Ensuring storage is ready"); await store.safeStorageReady(); // Load the previous window state with fallback to defaults @@ -468,6 +471,7 @@ app.on("ready", async () => { defaultHeight: 768, }); + console.debug("Opening main window"); const preloadScript = path.normalize(`${__dirname}/preload.cjs`); global.mainWindow = new BrowserWindow({ // https://www.electronjs.org/docs/faq#the-font-looks-blurry-what-is-this-and-what-can-i-do diff --git a/src/store.ts b/src/store.ts index c122008d..46f7fda8 100644 --- a/src/store.ts +++ b/src/store.ts @@ -92,7 +92,10 @@ class Store extends ElectronStore<{ if (this.has("safeStorage")) return; console.info("Store migration: started"); if (!safeStorage.isEncryptionAvailable()) { - console.error("Store migration: safeStorage is not available"); + console.error( + "Store migration: safeStorage is not available with backend", + safeStorage.getSelectedStorageBackend(), + ); throw new Error("safeStorage is not available"); }