fix(color): wizard Lua scripts are not run (#5816)
This commit is contained in:
@@ -660,7 +660,7 @@ void ModelLabelsWindow::newModel()
|
||||
int len = strlen(path);
|
||||
snprintf(path + len, LEN_BUFFER - len, "/%s%s", name.c_str(), SCRIPT_EXT);
|
||||
if (f_stat(path, 0) == FR_OK) {
|
||||
luaExec(path);
|
||||
luaExecStandalone(path);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -486,7 +486,7 @@ void RadioSdManagerPage::fileAction(const char* path, const char* name,
|
||||
#if defined(LUA)
|
||||
else if (isExtensionMatching(ext, SCRIPTS_EXT)) {
|
||||
menu->addLine(STR_EXECUTE_FILE, [=]() {
|
||||
luaExec(fullpath);
|
||||
luaExecStandalone(fullpath);
|
||||
});
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user