diff --git a/lib/ui/views/app_selector/app_selector_view.dart b/lib/ui/views/app_selector/app_selector_view.dart index e3ab0c41..6368df61 100644 --- a/lib/ui/views/app_selector/app_selector_view.dart +++ b/lib/ui/views/app_selector/app_selector_view.dart @@ -88,7 +88,7 @@ class _AppSelectorViewState extends State { ), ), ) - : model.apps.isEmpty + : model.allApps.isEmpty ? const AppSkeletonLoader() : Padding( padding: const EdgeInsets.symmetric(horizontal: 12.0) diff --git a/lib/ui/views/app_selector/app_selector_viewmodel.dart b/lib/ui/views/app_selector/app_selector_viewmodel.dart index 9eacb93c..e0784abd 100644 --- a/lib/ui/views/app_selector/app_selector_viewmodel.dart +++ b/lib/ui/views/app_selector/app_selector_viewmodel.dart @@ -45,9 +45,7 @@ class AppSelectorViewModel extends BaseViewModel { .length .compareTo(_patcherAPI.getFilteredPatches(a.packageName).length), ); - noApps = apps.isEmpty; getAllApps(); - notifyListeners(); } @@ -57,7 +55,7 @@ class AppSelectorViewModel extends BaseViewModel { .toSet() .where((name) => !apps.any((app) => app.packageName == name)) .toList(); - + noApps = allApps.isEmpty; return allApps; }