diff --git a/electron/main/database/Table.ts b/electron/main/database/Table.ts index 482963ed..8a5c71e2 100644 --- a/electron/main/database/Table.ts +++ b/electron/main/database/Table.ts @@ -140,6 +140,9 @@ export const maybeRePopulateTable = async ( ); await table.add(entriesToAdd, onProgress); + if (onProgress) { + onProgress(1); + } }; const isFileInDB = async ( diff --git a/electron/main/index.ts b/electron/main/index.ts index dc1b6d11..d775fb9f 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -27,16 +27,16 @@ import { FileInfoTree } from "./Files/Types"; import { registerDBSessionHandlers } from "./database/dbSessionHandlers"; const store = new Store(); -const user = store.get("user"); +// const user = store.get("user"); -// Check if 'user' and 'directory' exist before attempting to delete -if (user && typeof user === "object" && "directory" in user) { - // Delete the 'directory' property - delete user.directory; +// // Check if 'user' and 'directory' exist before attempting to delete +// if (user && typeof user === "object" && "directory" in user) { +// // Delete the 'directory' property +// delete user.directory; - // Save the updated 'user' object back to the store - store.set("user", user); -} +// // Save the updated 'user' object back to the store +// store.set("user", user); +// } process.env.DIST_ELECTRON = join(__dirname, "../"); process.env.DIST = join(process.env.DIST_ELECTRON, "../dist");