Fix stack use after return
This commit is contained in:
parent
41121bb434
commit
f99eb66ccf
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue