mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: drop some merge leftovers
This commit is contained in:
parent
483f8223b6
commit
c8fe984171
1 changed files with 2 additions and 21 deletions
|
@ -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) => {
|
app.on("browser-window-created", (_, window) => {
|
||||||
optimizer.watchWindowShortcuts(window);
|
optimizer.watchWindowShortcuts(window);
|
||||||
});
|
});
|
||||||
|
@ -100,7 +81,7 @@ app.on("second-instance", (_event, commandLine) => {
|
||||||
WindowManager.createMainWindow();
|
WindowManager.createMainWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
const [, path] = commandLine.pop().split("://");
|
const [, path] = commandLine.pop()!.split("://");
|
||||||
if (path) WindowManager.redirect(path);
|
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
|
// 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.
|
Loading…
Add table
Add a link
Reference in a new issue