From 0fe929e1aea8fd12777278474f0f06645b92c6af Mon Sep 17 00:00:00 2001 From: samlhuillier Date: Tue, 28 Nov 2023 12:58:51 -0600 Subject: [PATCH] cleanup --- electron/main/index.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 7be34e69..1694487f 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -337,33 +337,14 @@ ipcMain.on("set-openai-api-key", (event, apiKey: string) => { throw new Error("API Key cannot be empty"); } store.set(StoreKeys.UserOpenAIAPIKey, apiKey); - registerLLMSessionHandlers(store); } catch (error) { console.error("Error setting openai api key", error); } - // if (fileWatcher) { - // fileWatcher.close(); - // } - - // if (win) { - // startWatchingDirectory(win, userDirectory); - // updateFileListForRenderer(win, userDirectory, markdownExtensions); - // } - // maybeRePopulateTable(dbTable, userDirectory, markdownExtensions); event.returnValue = "success"; }); ipcMain.on("get-openai-api-key", (event) => { const apiKey = store.get(StoreKeys.UserOpenAIAPIKey); - // if (fileWatcher) { - // fileWatcher.close(); - // } - - // if (win) { - // startWatchingDirectory(win, userDirectory); - // updateFileListForRenderer(win, userDirectory, markdownExtensions); - // } - // maybeRePopulateTable(dbTable, userDirectory, markdownExtensions); event.returnValue = apiKey; });