mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-31 06:41:03 +00:00
feat: use power toast
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user