forked from mirror/OpenTTD
Codechange: introduce and use function to raise and dirty a set of widgets when they are lowered
This commit is contained in:
@@ -2922,10 +2922,7 @@ struct IndustryCargoesWindow : public Window {
|
||||
{
|
||||
if (!gui_scope) return;
|
||||
if (data == NUM_INDUSTRYTYPES) {
|
||||
if (this->IsWidgetLowered(WID_IC_NOTIFY)) {
|
||||
this->RaiseWidget(WID_IC_NOTIFY);
|
||||
this->SetWidgetDirty(WID_IC_NOTIFY);
|
||||
}
|
||||
this->RaiseWidgetWhenLowered(WID_IC_NOTIFY);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user