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) { if (!transform) {
transform = [](bool open, Element checkbox, Element radiobox) { transform = [](bool _open, Element _checkbox, Element _radiobox) {
if (open) { if (_open) {
const int max_height = 12; const int max_height = 12;
return vbox({ return vbox({
checkbox, _checkbox,
separator(), separator(),
radiobox | vscroll_indicator | frame | _radiobox | vscroll_indicator | frame |
size(HEIGHT, LESS_THAN, max_height), size(HEIGHT, LESS_THAN, max_height),
}) | }) |
border; border;
} }
return vbox({checkbox, filler()}) | border; return vbox({_checkbox, filler()}) | border;
}; };
} }
} }