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

@ -8,7 +8,7 @@ import { getFileBase64 } from "@main/helpers";
import { steamGamesWorker } from "@main/workers";
import { createGame } from "@main/services/library-sync";
import { steamUrlBuilder } from "@shared";
import { saveAllLocalSteamAchivements } from "@main/services/achievements/save-all-local-steam-achivements";
import { updateLocalUnlockedAchivements } from "@main/services/achievements/update-local-unlocked-achivements";
const addGameToLibrary = async (
_event: Electron.IpcMainInvokeEvent,
@ -53,9 +53,7 @@ const addGameToLibrary = async (
});
}
// TODO: search for achievements only from this game
console.log("Searching for achievements", title);
saveAllLocalSteamAchivements();
updateLocalUnlockedAchivements(true, objectID);
const game = await gameRepository.findOne({ where: { objectID } });