mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: patchable apps not showing if none of them is installed (#1009)
This commit is contained in:
parent
b23dfd4289
commit
2834e8b348
@ -88,7 +88,7 @@ class _AppSelectorViewState extends State<AppSelectorView> {
|
||||
),
|
||||
),
|
||||
)
|
||||
: model.apps.isEmpty
|
||||
: model.allApps.isEmpty
|
||||
? const AppSkeletonLoader()
|
||||
: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user