Skip to content

Conversation

@leolost2605
Copy link
Member

Checking if an app is installed does exactly the same IO as checking if all apps are installed and we are already doing the former synchronous.
So instead reload all installed apps synchronous and remove the check for a single app.

See the individual commits for details.

Use rebase to merge

There are only two occasions where we have to do this and in both cases
it's ok to do it synchronously:
- Startup: We have to wait anyways
- External change to the apps: Then you're probably not in the AppCenter
anyways.

Also fetching installed applications is really fast so it wouldn't
even be noticable.

Also this will safe us the is_package_installed call which does
exactly the same IO as getting all installed apps and is already
happening synchronously multiple times on startup and when using
AppCenter e.g. when installing apps.
@leolost2605 leolost2605 requested a review from a team October 12, 2025 13:38
@danirabbit
Copy link
Member

@leolost2605 can you resolve conflicts here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants