Debug: Fix disabling auto-refresh not updating button
This commit is contained in:
@@ -636,6 +636,7 @@ struct NewGRFInspectWindow : Window {
|
|||||||
case WID_NGRFI_REFRESH: {
|
case WID_NGRFI_REFRESH: {
|
||||||
this->auto_refresh = !this->auto_refresh;
|
this->auto_refresh = !this->auto_refresh;
|
||||||
this->SetWidgetLoweredState(WID_NGRFI_REFRESH, this->auto_refresh);
|
this->SetWidgetLoweredState(WID_NGRFI_REFRESH, this->auto_refresh);
|
||||||
|
this->SetWidgetDirty(WID_NGRFI_REFRESH);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user