mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-23 21:34:35 +03:00
Archive: fixed Apps tab ext filter (#3450)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
feb45f6645
commit
c3c54f672c
@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ typedef enum {
|
|||||||
ArchiveFileTypeJS,
|
ArchiveFileTypeJS,
|
||||||
ArchiveFileTypeFolder,
|
ArchiveFileTypeFolder,
|
||||||
ArchiveFileTypeUnknown,
|
ArchiveFileTypeUnknown,
|
||||||
|
ArchiveFileTypeAppOrJs,
|
||||||
ArchiveFileTypeLoading,
|
ArchiveFileTypeLoading,
|
||||||
} ArchiveFileTypeEnum;
|
} ArchiveFileTypeEnum;
|
||||||
|
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user