Option to move non-installed apps to bottom (#264)

This commit is contained in:
Imran Remtulla
2023-05-05 23:08:34 -04:00
parent fb9e66332d
commit 30c89fe385
12 changed files with 54 additions and 6 deletions

View File

@@ -185,6 +185,18 @@ class AppsPageState extends State<AppsPage> {
listedApps = [...temp, ...listedApps];
}
if (settingsProvider.buryNonInstalled) {
var temp = [];
listedApps = listedApps.where((sa) {
if (sa.app.installedVersion == null) {
temp.add(sa);
return false;
}
return true;
}).toList();
listedApps = [...listedApps, ...temp];
}
var tempPinned = [];
var tempNotPinned = [];
for (var a in listedApps) {