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:
parent
cf2ee0a97f
commit
a8562fe06f
2 changed files with 6 additions and 6 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue