mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-25 11:51:02 +00:00
feat: batch games and code refactor
This commit is contained in:
@@ -2,6 +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";
|
||||
|
||||
export class HydraApi {
|
||||
private static instance: AxiosInstance;
|
||||
@@ -49,6 +50,9 @@ export class HydraApi {
|
||||
|
||||
if (WindowManager.mainWindow) {
|
||||
WindowManager.mainWindow.webContents.send("on-signin");
|
||||
|
||||
await uploadBatchGames();
|
||||
await getRemoteGames();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user