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
+15 -1
View File
@@ -91,10 +91,24 @@ bool SelectButton::handle_nav_command(NavCommand cmd) {
return false;
}
void ControlledSelectButton::update() {
void BaseControlledSelectButton::update() {
set_disabled(is_disabled());
set_value_label(format_value());
SelectButton::update();
}
Rml::String ControlledSelectButton::format_value() {
if (!mGetValue) {
return "";
}
return mGetValue();
}
bool ControlledSelectButton::is_disabled() {
if (!mIsDisabled) {
return false;
}
return mIsDisabled();
}
} // namespace dusk::ui