From c4e2dba2bcc79e3b6d21868986fb810f01c5890b Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Thu, 3 Aug 2023 00:15:27 +0200 Subject: [PATCH] Show all file extensions in mass storage --- applications/external/mass_storage/mass_storage_app_i.h | 1 - .../mass_storage/scenes/mass_storage_scene_file_select.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/applications/external/mass_storage/mass_storage_app_i.h b/applications/external/mass_storage/mass_storage_app_i.h index 5beebd3f3..9867c11b6 100644 --- a/applications/external/mass_storage/mass_storage_app_i.h +++ b/applications/external/mass_storage/mass_storage_app_i.h @@ -17,7 +17,6 @@ #include "views/mass_storage_view.h" #define MASS_STORAGE_APP_PATH_FOLDER STORAGE_APP_DATA_PATH_PREFIX -#define MASS_STORAGE_APP_EXTENSION ".img" #define MASS_STORAGE_FILE_NAME_LEN 40 struct MassStorageApp { diff --git a/applications/external/mass_storage/scenes/mass_storage_scene_file_select.c b/applications/external/mass_storage/scenes/mass_storage_scene_file_select.c index a3c002fb2..8b078086d 100644 --- a/applications/external/mass_storage/scenes/mass_storage_scene_file_select.c +++ b/applications/external/mass_storage/scenes/mass_storage_scene_file_select.c @@ -6,9 +6,9 @@ static bool mass_storage_file_select(MassStorageApp* mass_storage) { furi_assert(mass_storage); DialogsFileBrowserOptions browser_options; - dialog_file_browser_set_basic_options( - &browser_options, MASS_STORAGE_APP_EXTENSION, &I_mass_storage_10px); + dialog_file_browser_set_basic_options(&browser_options, "*", &I_mass_storage_10px); browser_options.base_path = MASS_STORAGE_APP_PATH_FOLDER; + browser_options.hide_ext = false; // Input events and views are managed by file_select bool res = dialog_file_browser_show(