fix check [ci skip]

This commit is contained in:
MX 2024-06-14 19:38:50 +03:00
parent 899614fece
commit 8b46e1c202
No known key found for this signature in database
GPG key ID: 7CCC66B7DBDD1C83
2 changed files with 3 additions and 3 deletions

View file

@ -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"),

View file

@ -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
}