1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-25 01:05:08 +03:00

Fix text display menu and allow viewing script contents (fix #1483)

This commit is contained in:
Kilrah 2019-08-18 19:23:18 +02:00
parent cf2ee0a97f
commit a8562fe06f
2 changed files with 6 additions and 6 deletions

View file

@ -355,9 +355,6 @@ void menuRadioSdManager(event_t _event)
}
}
#endif
else if (!strcasecmp(ext, TEXT_EXT)) {
POPUP_MENU_ADD_ITEM(STR_VIEW_TEXT);
}
#if defined(LUA)
else if (isExtensionMatching(ext, SCRIPTS_EXT)) {
POPUP_MENU_ADD_ITEM(STR_EXECUTE_FILE);
@ -401,6 +398,9 @@ void menuRadioSdManager(event_t _event)
}
}
#endif
if (isExtensionMatching(ext, TEXT_EXT) || isExtensionMatching(ext, SCRIPTS_EXT)) {
POPUP_MENU_ADD_ITEM(STR_VIEW_TEXT);
}
}
if (!READ_ONLY()) {
if (IS_FILE(line))