feat(color): Add 'View Text' option for .lua files in SD manager (#4165)

This commit is contained in:
philmoz
2023-10-06 11:04:43 +10:00
committed by GitHub
parent ee73e95077
commit cec212dcd9
+1 -1
View File
@@ -368,7 +368,7 @@ void RadioSdManagerPage::fileAction(const char* path, const char* name,
memcpy(g_model.header.bitmap, name, sizeof(g_model.header.bitmap));
storageDirty(EE_MODEL);
});
} else if (!strcasecmp(ext, TEXT_EXT) || !strcasecmp(ext, LOGS_EXT)) {
} else if (!strcasecmp(ext, TEXT_EXT) || !strcasecmp(ext, LOGS_EXT) || !strcasecmp(ext, SCRIPT_EXT)) {
menu->addLine(STR_VIEW_TEXT, [=]() {
FIL file;
if (FR_OK == f_open(&file, fullpath, FA_OPEN_EXISTING | FA_READ)) {