mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-25 20:01:03 +00:00
feat: start watching new achievements only after finishing sync
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { sleep } from "@main/helpers";
|
||||
import { DownloadManager } from "./download";
|
||||
import { watchProcesses } from "./process-watcher";
|
||||
import { watchAchievements } from "./achievements/achievement-watcher";
|
||||
import { AchievementWatcherManager } from "./achievements/AchievementWatcherManager";
|
||||
|
||||
export const startMainLoop = async () => {
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
@@ -9,7 +9,7 @@ export const startMainLoop = async () => {
|
||||
await Promise.allSettled([
|
||||
watchProcesses(),
|
||||
DownloadManager.watchDownloads(),
|
||||
watchAchievements(),
|
||||
AchievementWatcherManager.watchAchievements(),
|
||||
]);
|
||||
|
||||
await sleep(1500);
|
||||
|
||||
Reference in New Issue
Block a user