feat: use power toast

This commit is contained in:
Zamitto
2024-10-25 18:06:09 -03:00
parent 0a86ec89aa
commit 9fa9f6d85a
7 changed files with 85 additions and 5 deletions

View File

@@ -12,6 +12,8 @@ import { UserPreferences } from "./entity";
import { RealDebridClient } from "./services/real-debrid";
import { HydraApi } from "./services/hydra-api";
import { uploadGamesBatch } from "./services/library-sync";
import { Toast } from "powertoast";
import { publishNewAchievementNotification } from "./services/notifications";
const loadState = async (userPreferences: UserPreferences | null) => {
import("./events");
@@ -49,5 +51,10 @@ userPreferencesRepository
where: { id: 1 },
})
.then((userPreferences) => {
publishNewAchievementNotification({
icon: "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/72850/c3a604f698d247b53d20f212e9f31a9ec707a180.jpg",
displayName: "Hydra has started",
});
loadState(userPreferences);
});