fix(color): wizard Lua scripts are not run (#5816)

This commit is contained in:
philmoz
2025-01-22 12:41:02 +10:00
committed by GitHub
parent 8a5d6a2696
commit 25dfd3b061
2 changed files with 2 additions and 2 deletions
@@ -660,7 +660,7 @@ void ModelLabelsWindow::newModel()
int len = strlen(path); int len = strlen(path);
snprintf(path + len, LEN_BUFFER - len, "/%s%s", name.c_str(), SCRIPT_EXT); snprintf(path + len, LEN_BUFFER - len, "/%s%s", name.c_str(), SCRIPT_EXT);
if (f_stat(path, 0) == FR_OK) { if (f_stat(path, 0) == FR_OK) {
luaExec(path); luaExecStandalone(path);
} }
#endif #endif
} }
@@ -486,7 +486,7 @@ void RadioSdManagerPage::fileAction(const char* path, const char* name,
#if defined(LUA) #if defined(LUA)
else if (isExtensionMatching(ext, SCRIPTS_EXT)) { else if (isExtensionMatching(ext, SCRIPTS_EXT)) {
menu->addLine(STR_EXECUTE_FILE, [=]() { menu->addLine(STR_EXECUTE_FILE, [=]() {
luaExec(fullpath); luaExecStandalone(fullpath);
}); });
} }
#endif #endif