Skip to content

Commit

Permalink
fix: run checkForUpdates after refreshAddonInstallState to make sure …
Browse files Browse the repository at this point in the history
…we don't have Unknown status the first time
  • Loading branch information
Benjozork committed Oct 6, 2024
1 parent 869e2ad commit 3e7eef8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderer/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const App = () => {

useEffect(() => {
for (const addon of addons) {
void InstallManager.checkForUpdates(addon);
void InstallManager.refreshAddonInstallState(addon);
void InstallManager.refreshAddonInstallState(addon).then(() => void InstallManager.checkForUpdates(addon));
}

if (settings.get('cache.main.lastShownSection')) {
Expand Down

0 comments on commit 3e7eef8

Please sign in to comment.