Codechange: introduce and use function to raise and dirty a set of widgets when they are lowered
This commit is contained in:
@@ -649,10 +649,7 @@ struct ScenarioEditorLandscapeGenerationWindow : Window {
|
||||
{
|
||||
for (uint i = WID_ETT_START; i < this->nested_array_size; i++) {
|
||||
if (i == WID_ETT_BUTTONS_START) i = WID_ETT_BUTTONS_END; // skip the buttons
|
||||
if (this->IsWidgetLowered(i)) {
|
||||
this->RaiseWidget(i);
|
||||
this->SetWidgetDirty(i);
|
||||
}
|
||||
this->RaiseWidgetWhenLowered(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user