Fix shadowed vars

This commit is contained in:
James Parker 2024-04-04 08:28:56 +01:00
parent 60ba15ac07
commit 803cfda875

View File

@ -91,18 +91,18 @@ Component Dropdown(DropdownOption option) {
}
if (!transform) {
transform = [](bool open, Element checkbox, Element radiobox) {
if (open) {
transform = [](bool _open, Element _checkbox, Element _radiobox) {
if (_open) {
const int max_height = 12;
return vbox({
checkbox,
_checkbox,
separator(),
radiobox | vscroll_indicator | frame |
_radiobox | vscroll_indicator | frame |
size(HEIGHT, LESS_THAN, max_height),
}) |
border;
}
return vbox({checkbox, filler()}) | border;
return vbox({_checkbox, filler()}) | border;
};
}
}