mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
[lua] Fix Dialog.data for checkboxes if the last pressed button was a checkbox
This commit is contained in:
parent
150ca293ef
commit
2c3fd2171b
@ -396,7 +396,8 @@ int Dialog_button_base(lua_State* L, T** outputWidget = nullptr)
|
||||
Dialog_connect_signal(
|
||||
L, 1, widget->Click,
|
||||
[dlg, widget](lua_State* L, Event&){
|
||||
dlg->lastButton = widget;
|
||||
if (widget->type() == ui::kButtonWidget)
|
||||
dlg->lastButton = widget;
|
||||
});
|
||||
closeWindowByDefault = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user