Sort apps on Desktop and Settings (#87)

- Sort apps by name
- Make manifest IDs consistent
- Updated screenshots
- Renamed Screenshot app so it always renders at the bottom of the app list
This commit is contained in:
Ken Van Hoeylandt
2024-11-24 22:16:43 +01:00
committed by GitHub
parent caa8756998
commit 76c14a5f47
19 changed files with 57 additions and 50 deletions
+5 -13
View File
@@ -42,22 +42,14 @@ _Nullable const AppManifest * app_manifest_registry_find_by_id(const std::string
return result;
}
void app_manifest_registry_for_each_of_type(AppType type, void* _Nullable context, AppManifestCallback callback) {
std::vector<const AppManifest*> app_manifest_registry_get() {
std::vector<const AppManifest*> manifests;
app_registry_lock();
for (auto& it : app_manifest_map) {
if (it.second->type == type) {
callback(it.second, context);
}
}
app_registry_unlock();
}
void app_manifest_registry_for_each(AppManifestCallback callback, void* _Nullable context) {
app_registry_lock();
for (auto& it : app_manifest_map) {
callback(it.second, context);
for (const auto& item: app_manifest_map) {
manifests.push_back(item.second);
}
app_registry_unlock();
return manifests;
}
} // namespace