From c8fe98417189d81983603fe35f37b7def92b403e Mon Sep 17 00:00:00 2001 From: lilezek Date: Tue, 30 Apr 2024 11:07:39 +0200 Subject: [PATCH] fix: drop some merge leftovers --- src/main/index.ts | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index d9aa1a43..b2a1b227 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -66,25 +66,6 @@ app.whenReady().then(() => { }); }); -const track1337xUsers = async (existingRepacks: Repack[]) => { - for (const repacker of repackers) { - await getNewRepacksFromUser( - repacker, - existingRepacks.filter((repack) => repack.repacker === repacker) - ); - } -}; - -const checkForNewRepacks = async () => { - const userPreferences = await userPreferencesRepository.findOne({ - where: { id: 1 }, - }); - - WindowManager.createMainWindow(); - WindowManager.createSystemTray(userPreferences?.language || "en"); - }); -}); - app.on("browser-window-created", (_, window) => { optimizer.watchWindowShortcuts(window); }); @@ -100,7 +81,7 @@ app.on("second-instance", (_event, commandLine) => { WindowManager.createMainWindow(); } - const [, path] = commandLine.pop().split("://"); + const [, path] = commandLine.pop()!.split("://"); if (path) WindowManager.redirect(path); }); @@ -125,4 +106,4 @@ app.on("activate", () => { }); // In this file you can include the rest of your app's specific main process -// code. You can also put them in separate files and import them here. +// code. You can also put them in separate files and import them here. \ No newline at end of file