fix: Show updatable app item only on updatable apps listing

This commit is contained in:
Alberto Ponces 2022-09-18 04:12:33 +01:00
parent 5d073bddf2
commit dd52c379b4

View File

@ -74,7 +74,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)