Hide dot files in browser if not debug mode

This commit is contained in:
Willy-JL
2023-03-28 22:01:48 +01:00
parent 638f0fc6f1
commit c7f6cd1c64
@@ -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