Some more dual pane select work

This commit is contained in:
Luke Street
2026-05-01 00:26:04 -06:00
parent e0c449f28e
commit ab4eccf1df
9 changed files with 122 additions and 21 deletions
+8 -1
View File
@@ -15,7 +15,7 @@ Rml::Element* createRoot(Rml::Element* parent, const Rml::String& tagName) {
} // namespace
Button::Button(Rml::Element* parent, ButtonProps props, const Rml::String& tagName)
Button::Button(Rml::Element* parent, Props props, const Rml::String& tagName)
: Component(createRoot(parent, tagName)) {
update_props(std::move(props));
}
@@ -55,4 +55,11 @@ void Button::update_props(Props props) {
mProps = std::move(props);
}
void ControlledButton::update() {
if (mIsSelected) {
set_selected(mIsSelected());
}
Button::update();
}
} // namespace dusk::ui