diff --git a/applications/main/archive/helpers/archive_browser.h b/applications/main/archive/helpers/archive_browser.h index 807ac268b..37c05da30 100644 --- a/applications/main/archive/helpers/archive_browser.h +++ b/applications/main/archive/helpers/archive_browser.h @@ -12,7 +12,7 @@ static const char* tab_default_paths[] = { [ArchiveTabIButton] = ANY_PATH("ibutton"), [ArchiveTabNFC] = ANY_PATH("nfc"), [ArchiveTabSubGhz] = ANY_PATH("subghz"), - [ArchiveTabSubGhzRemote] = ANY_PATH("subghz_remote"), + [ArchiveTabSubGhzRemote] = EXT_PATH("subghz_remote"), [ArchiveTabLFRFID] = ANY_PATH("lfrfid"), [ArchiveTabInfrared] = ANY_PATH("infrared"), [ArchiveTabBadUsb] = ANY_PATH("badusb"), diff --git a/applications/main/archive/helpers/archive_files.c b/applications/main/archive/helpers/archive_files.c index 67d636581..3684fe643 100644 --- a/applications/main/archive/helpers/archive_files.c +++ b/applications/main/archive/helpers/archive_files.c @@ -22,8 +22,8 @@ void archive_set_file_type(ArchiveFile_t* file, const char* path, bool is_folder file->type = ArchiveFileTypeBadUsb; return; // *.txt file is a BadUSB script only if it is in BadUSB folder } - if(furi_string_search( - file->path, archive_get_default_path(ArchiveTabSubGhzRemote)) == 0) { + if((furi_string_search(file->path, EXT_PATH("subghz_remote")) == 0) || + (furi_string_search(file->path, ANY_PATH("subghz_remote")) == 0)) { file->type = ArchiveFileTypeSubGhzRemote; return; // *.txt file is a SubRem map file only if it is in SubRem folder }