Skip to content

Commit

Permalink
fix refreshing game db (bis)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdrme committed Jan 21, 2025
1 parent 3a1af1c commit 6a6dea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/store/game.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ watch(
);

export async function initGameStore() {
await refreshStore();
window.downloads.onDownloadGameComplete(async (downloadInfo) => {
console.debug("Received game download completed event", downloadInfo);
refreshStore();
Expand All @@ -51,6 +52,5 @@ export async function initGameStore() {
console.debug("Game closed");
gameStore.isGameRunning = false;
});

gameStore.isInitialized = true;
}

0 comments on commit 6a6dea7

Please sign in to comment.