fix: do not duplicate app listing if update available

This commit is contained in:
Alberto Ponces 2022-08-31 09:33:54 +01:00
parent 3a7e7679f3
commit 5a613a695e

View File

@ -50,7 +50,10 @@ class HomeViewModel extends BaseViewModel {
}
void _getPatchedApps() {
patchedInstalledApps = _managerAPI.getPatchedApps().toList();
patchedInstalledApps = _managerAPI
.getPatchedApps()
.where((app) => app.hasUpdates == false)
.toList();
patchedUpdatableApps = _managerAPI
.getPatchedApps()
.where((app) => app.hasUpdates == true)