mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
feat: adding download source resync
This commit is contained in:
commit
6b8ab895e3
@ -24,6 +24,7 @@ nsis:
|
|||||||
uninstallDisplayName: ${productName}
|
uninstallDisplayName: ${productName}
|
||||||
createDesktopShortcut: always
|
createDesktopShortcut: always
|
||||||
oneClick: false
|
oneClick: false
|
||||||
|
allowToChangeInstallationDirectory: true
|
||||||
mac:
|
mac:
|
||||||
entitlementsInherit: build/entitlements.mac.plist
|
entitlementsInherit: build/entitlements.mac.plist
|
||||||
extendInfo:
|
extendInfo:
|
||||||
|
@ -6,6 +6,7 @@ import {
|
|||||||
import { UserPreferences } from "./entity";
|
import { UserPreferences } from "./entity";
|
||||||
import { RealDebridClient } from "./services/real-debrid";
|
import { RealDebridClient } from "./services/real-debrid";
|
||||||
import { fetchDownloadSourcesAndUpdate } from "./helpers";
|
import { fetchDownloadSourcesAndUpdate } from "./helpers";
|
||||||
|
import { publishNewRepacksNotifications } from "./services/notifications";
|
||||||
|
|
||||||
startMainLoop();
|
startMainLoop();
|
||||||
|
|
||||||
@ -29,7 +30,9 @@ const loadState = async (userPreferences: UserPreferences | null) => {
|
|||||||
if (nextQueueItem?.game.status === "active")
|
if (nextQueueItem?.game.status === "active")
|
||||||
DownloadManager.startDownload(nextQueueItem.game);
|
DownloadManager.startDownload(nextQueueItem.game);
|
||||||
|
|
||||||
fetchDownloadSourcesAndUpdate();
|
fetchDownloadSourcesAndUpdate().then(() => {
|
||||||
|
publishNewRepacksNotifications(300);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
userPreferencesRepository
|
userPreferencesRepository
|
||||||
|
Loading…
Reference in New Issue
Block a user