mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: dispatching event when remote games are fetched
This commit is contained in:
parent
ca81281f1f
commit
944f3891bf
8 changed files with 31 additions and 17 deletions
|
@ -2,7 +2,7 @@ import { userAuthRepository } from "@main/repository";
|
|||
import axios, { AxiosError, AxiosInstance } from "axios";
|
||||
import { WindowManager } from "./window-manager";
|
||||
import url from "url";
|
||||
import { getRemoteGames, uploadBatchGames } from "./library-sync";
|
||||
import { uploadGamesBatch } from "./library-sync";
|
||||
|
||||
export class HydraApi {
|
||||
private static instance: AxiosInstance;
|
||||
|
@ -50,9 +50,7 @@ export class HydraApi {
|
|||
|
||||
if (WindowManager.mainWindow) {
|
||||
WindowManager.mainWindow.webContents.send("on-signin");
|
||||
|
||||
await uploadBatchGames();
|
||||
await getRemoteGames();
|
||||
uploadGamesBatch();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue