Remove the UI::EventReturn return values. Makes editing the UI nicer.

This commit is contained in:
Henrik Rydgård
2025-09-15 11:01:02 -06:00
parent 730fd4754e
commit 58456ae950
62 changed files with 516 additions and 935 deletions
+1 -6
View File
@@ -47,7 +47,6 @@ public:
c->OnClick.Add([=](UI::EventParams &e) {
*setting_ = i;
TriggerFinish(DR_OK);
return UI::EVENT_DONE;
});
}
@@ -77,7 +76,6 @@ public:
c->OnClick.Add([=](UI::EventParams &e) {
*setting_ = i;
TriggerFinish(DR_OK);
return UI::EVENT_DONE;
});
}
@@ -159,7 +157,6 @@ void CustomButtonMappingScreen::CreateViews() {
iconScreen->SetPopupOrigin(e.v);
screenManager()->push(iconScreen);
return UI::EVENT_DONE;
});
Choice *shape = vertLayout->Add(new Choice(co->T("Shape")));
@@ -170,7 +167,6 @@ void CustomButtonMappingScreen::CreateViews() {
shape->SetPopupOrigin(e.v);
screenManager()->push(shape);
return UI::EVENT_DONE;
});
vertLayout->Add(new ItemHeader(co->T("Button Binding")));
@@ -234,7 +230,6 @@ void CustomButtonMappingScreen::onFinish(DialogResult result) {
g_Config.Save("CustomButtonMappingScreen::onFinish");
}
UI::EventReturn CustomButtonMappingScreen::ChoiceEventHandler::onChoiceClick(UI::EventParams &e){
void CustomButtonMappingScreen::ChoiceEventHandler::onChoiceClick(UI::EventParams &e){
checkbox_->Toggle();
return UI::EVENT_DONE;
};