Debug: Fix disabling auto-refresh not updating button

This commit is contained in:
Jonathan G Rennison
2020-12-26 20:12:22 +00:00
parent 3f3d5c106f
commit e5d4fab138

View File

@@ -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;
} }
} }