From b2d4dc5ecbcc4812eef6c9e4810dc7db5173de22 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Thu, 3 Apr 2025 23:06:54 +0200 Subject: [PATCH] Simplify AppList (#271) Remove categories, disable HelloWorld app --- App/Source/Main.cpp | 4 ++-- Tactility/Source/app/applist/AppList.cpp | 10 +--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/App/Source/Main.cpp b/App/Source/Main.cpp index 5f9f7f80..5586930d 100644 --- a/App/Source/Main.cpp +++ b/App/Source/Main.cpp @@ -5,7 +5,7 @@ #include "tt_init.h" #endif -extern const tt::app::AppManifest hello_world_app; +// extern const tt::app::AppManifest hello_world_app; extern "C" { @@ -17,7 +17,7 @@ void app_main() { */ .hardware = TT_BOARD_HARDWARE, .apps = { - &hello_world_app, + // &hello_world_app, } }; diff --git a/Tactility/Source/app/applist/AppList.cpp b/Tactility/Source/app/applist/AppList.cpp index 0eda04dd..560b42a8 100644 --- a/Tactility/Source/app/applist/AppList.cpp +++ b/Tactility/Source/app/applist/AppList.cpp @@ -43,16 +43,8 @@ public: auto manifests = getApps(); std::sort(manifests.begin(), manifests.end(), SortAppManifestByName); - lv_list_add_text(list, "User"); for (const auto& manifest: manifests) { - if (manifest->type == Type::User) { - createAppWidget(manifest, list); - } - } - - lv_list_add_text(list, "System"); - for (const auto& manifest: manifests) { - if (manifest->type == Type::System) { + if (manifest->type == Type::User || manifest->type == Type::System) { createAppWidget(manifest, list); } }