feat: fix notification icons

This commit is contained in:
Zamitto 2024-09-26 16:09:36 -03:00
parent 780ab5f909
commit 08fbd4c8d8
3 changed files with 32 additions and 10 deletions

View file

@ -8,6 +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";
const addGameToLibrary = async (
_event: Electron.IpcMainInvokeEvent,
@ -52,6 +53,10 @@ const addGameToLibrary = async (
});
}
// TODO: search for achievements only from this game
console.log("Searching for achievements", title);
saveAllLocalSteamAchivements();
const game = await gameRepository.findOne({ where: { objectID } });
createGame(game!).catch(() => {});