diff --git a/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_mainmenu_add.c b/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_mainmenu_add.c index edc4c668e..5a81d5d77 100644 --- a/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_mainmenu_add.c +++ b/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_mainmenu_add.c @@ -42,6 +42,12 @@ static void Storage* storage = furi_record_open(RECORD_STORAGE); flipper_application_load_name_and_icon(temp_path, storage, NULL, temp_path); furi_record_close(RECORD_STORAGE); + if(furi_string_start_with_str(temp_path, "[")) { + size_t trim = furi_string_search_str(temp_path, "] ", 1); + if(trim != FURI_STRING_FAILURE) { + furi_string_right(temp_path, trim + 2); + } + } CharList_push_back(app->mainmenu_app_labels, strdup(furi_string_get_cstr(temp_path))); app->mainmenu_app_index = CharList_size(app->mainmenu_app_labels) - 1; app->save_mainmenu_apps = true; diff --git a/applications/main/xtreme_app/xtreme_app.c b/applications/main/xtreme_app/xtreme_app.c index 8127cf673..b82ec4295 100644 --- a/applications/main/xtreme_app/xtreme_app.c +++ b/applications/main/xtreme_app/xtreme_app.c @@ -243,6 +243,12 @@ XtremeApp* xtreme_app_alloc() { furi_string_replace_all(line, "\n", ""); CharList_push_back(app->mainmenu_app_exes, strdup(furi_string_get_cstr(line))); flipper_application_load_name_and_icon(line, storage, NULL, line); + if(furi_string_start_with_str(line, "[")) { + size_t trim = furi_string_search_str(line, "] ", 1); + if(trim != FURI_STRING_FAILURE) { + furi_string_right(line, trim + 2); + } + } CharList_push_back(app->mainmenu_app_labels, strdup(furi_string_get_cstr(line))); } }