Fix stack use after return

This commit is contained in:
Yousef Khadadeh 2026-06-03 16:27:49 +03:00
parent 41121bb434
commit f99eb66ccf

View file

@ -75,7 +75,7 @@ void ImageEditTool::edit_gui(Toolbar& t) {
text_label(gui, "Name: " + resourceData->name); text_label(gui, "Name: " + resourceData->name);
text_button(gui, "file download", "Download file", { text_button(gui, "file download", "Download file", {
.wide = true, .wide = true,
.onClick = [&] { .onClick = [&, resourceData] {
#ifdef __EMSCRIPTEN__ #ifdef __EMSCRIPTEN__
emscripten_browser_file::download( emscripten_browser_file::download(
resourceData->name, resourceData->name,