feat: remove notification spam

This commit is contained in:
Zamitto 2024-09-26 21:51:15 -03:00
parent d7c05247c3
commit 753a293cd7
8 changed files with 80 additions and 49 deletions

View file

@ -4,7 +4,7 @@ import { IsNull } from "typeorm";
import { HydraApi } from "../hydra-api";
import { mergeWithRemoteGames } from "./merge-with-remote-games";
import { WindowManager } from "../window-manager";
import { saveAllLocalSteamAchivements } from "../achievements/save-all-local-steam-achivements";
import { updateLocalUnlockedAchivements } from "../achievements/update-local-unlocked-achivements";
export const uploadGamesBatch = async () => {
const games = await gameRepository.find({
@ -29,7 +29,7 @@ export const uploadGamesBatch = async () => {
await mergeWithRemoteGames();
await saveAllLocalSteamAchivements();
await updateLocalUnlockedAchivements(false);
if (WindowManager.mainWindow)
WindowManager.mainWindow.webContents.send("on-library-batch-complete");