fix(color): file picker may not work in Lua scripts (#6828)

This commit is contained in:
philmoz
2025-11-28 12:59:28 +10:00
committed by GitHub
parent b05fb4a439
commit 9414308ebd
4 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -2690,7 +2690,7 @@ void LvglWidgetFilePicker::build(lua_State *L)
if (h == LV_SIZE_CONTENT) h = 0;
auto c = new FileChoice(
lvglManager->getCurrentParent(), {x, y, w, h},
folder.c_str(), extension.c_str(), maxLen,
folder, extension, maxLen,
[=]() { return pcallGetStringVal(L, getFunction); },
[=](std::string val) { pcallSetStringVal(L, setFunction, val.c_str()); },
hideExtension, title.txt.c_str());