From c7f6cd1c64c8f991b013479d318ec77256991e19 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Tue, 28 Mar 2023 22:01:48 +0100 Subject: [PATCH] Hide dot files in browser if not debug mode --- applications/main/archive/helpers/archive_browser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/main/archive/helpers/archive_browser.c b/applications/main/archive/helpers/archive_browser.c index f93d9694d..bbfbad3ce 100644 --- a/applications/main/archive/helpers/archive_browser.c +++ b/applications/main/archive/helpers/archive_browser.c @@ -498,8 +498,8 @@ void archive_switch_tab(ArchiveBrowserView* browser, InputKey key) { tab = archive_get_tab(browser); if(archive_is_dir_exists(browser->path)) { bool skip_assets = (strcmp(archive_get_tab_ext(tab), "*") == 0) ? false : true; - // Hide dot files everywhere except Browser - bool hide_dot_files = (strcmp(archive_get_tab_ext(tab), "*") == 0) ? false : true; + // Hide dot files everywhere except Browser if in debug mode + bool hide_dot_files = (strcmp(archive_get_tab_ext(tab), "*") == 0) ? !furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug) : true; archive_file_browser_set_path( browser, browser->path, archive_get_tab_ext(tab), skip_assets, hide_dot_files); tab_empty = false; // Empty check will be performed later