From 5a613a695ee03fb15b7c2805035f3da112f0e477 Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Wed, 31 Aug 2022 09:33:54 +0100 Subject: [PATCH] fix: do not duplicate app listing if update available --- lib/ui/views/home/home_viewmodel.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ui/views/home/home_viewmodel.dart b/lib/ui/views/home/home_viewmodel.dart index 59cca86f..e5d61c88 100644 --- a/lib/ui/views/home/home_viewmodel.dart +++ b/lib/ui/views/home/home_viewmodel.dart @@ -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)