Archive: fixed Apps tab ext filter (#3450)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Nikolay Minaylov 2024-02-15 06:53:34 +03:00 committed by GitHub
parent feb45f6645
commit c3c54f672c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View File

@ -33,6 +33,7 @@ static const char* known_ext[] = {
[ArchiveFileTypeUpdateManifest] = ".fuf", [ArchiveFileTypeUpdateManifest] = ".fuf",
[ArchiveFileTypeFolder] = "?", [ArchiveFileTypeFolder] = "?",
[ArchiveFileTypeUnknown] = "*", [ArchiveFileTypeUnknown] = "*",
[ArchiveFileTypeAppOrJs] = ".fap|.js",
}; };
static const ArchiveFileTypeEnum known_type[] = { static const ArchiveFileTypeEnum known_type[] = {
@ -44,7 +45,7 @@ static const ArchiveFileTypeEnum known_type[] = {
[ArchiveTabInfrared] = ArchiveFileTypeInfrared, [ArchiveTabInfrared] = ArchiveFileTypeInfrared,
[ArchiveTabBadUsb] = ArchiveFileTypeBadUsb, [ArchiveTabBadUsb] = ArchiveFileTypeBadUsb,
[ArchiveTabU2f] = ArchiveFileTypeU2f, [ArchiveTabU2f] = ArchiveFileTypeU2f,
[ArchiveTabApplications] = ArchiveFileTypeApplication, [ArchiveTabApplications] = ArchiveFileTypeAppOrJs,
[ArchiveTabBrowser] = ArchiveFileTypeUnknown, [ArchiveTabBrowser] = ArchiveFileTypeUnknown,
}; };

View File

@ -19,6 +19,7 @@ typedef enum {
ArchiveFileTypeJS, ArchiveFileTypeJS,
ArchiveFileTypeFolder, ArchiveFileTypeFolder,
ArchiveFileTypeUnknown, ArchiveFileTypeUnknown,
ArchiveFileTypeAppOrJs,
ArchiveFileTypeLoading, ArchiveFileTypeLoading,
} ArchiveFileTypeEnum; } ArchiveFileTypeEnum;

View File

@ -35,6 +35,7 @@ static const Icon* ArchiveItemIcons[] = {
[ArchiveFileTypeLoading] = &I_loading_10px, [ArchiveFileTypeLoading] = &I_loading_10px,
[ArchiveFileTypeApplication] = &I_unknown_10px, [ArchiveFileTypeApplication] = &I_unknown_10px,
[ArchiveFileTypeJS] = &I_js_script_10px, [ArchiveFileTypeJS] = &I_js_script_10px,
[ArchiveFileTypeAppOrJs] = &I_unknown_10px,
}; };
void archive_browser_set_callback( void archive_browser_set_callback(