Skip to content

Commit

Permalink
rollback: patchable apps not showing if none of them is installed ReV…
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Oct 28, 2023
1 parent e97cf36 commit 4caa3cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ui/views/app_selector/app_selector_view.dart
Expand Up @@ -84,7 +84,7 @@ class _AppSelectorViewState extends State<AppSelectorView> {
),
),
)
: model.allApps.isEmpty
: model.apps.isEmpty
? const AppSkeletonLoader()
: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/views/app_selector/app_selector_viewmodel.dart
Expand Up @@ -44,6 +44,7 @@ class AppSelectorViewModel extends BaseViewModel {
.length
.compareTo(_patcherAPI.getFilteredPatches(a.packageName).length),
);
noApps = apps.isEmpty;
getAllApps();
notifyListeners();
}
Expand All @@ -54,7 +55,6 @@ class AppSelectorViewModel extends BaseViewModel {
.toSet()
.where((name) => !apps.any((app) => app.packageName == name))
.toList();
noApps = allApps.isEmpty;
return allApps;
}

Expand Down

0 comments on commit 4caa3cf

Please sign in to comment.