mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
call batch games on hydra start up
This commit is contained in:
@@ -10,7 +10,7 @@ import { fetchDownloadSourcesAndUpdate } from "./helpers";
|
||||
import { publishNewRepacksNotifications } from "./services/notifications";
|
||||
import { MoreThan } from "typeorm";
|
||||
import { HydraApi } from "./services/hydra-api";
|
||||
import { getRemoteGames } from "./services/library-sync";
|
||||
import { getRemoteGames, uploadBatchGames } from "./services/library-sync";
|
||||
|
||||
startMainLoop();
|
||||
|
||||
@@ -24,6 +24,7 @@ const loadState = async (userPreferences: UserPreferences | null) => {
|
||||
|
||||
HydraApi.setupApi().then(async () => {
|
||||
if (HydraApi.isLoggedIn()) {
|
||||
await uploadBatchGames();
|
||||
getRemoteGames();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user