* Toggles state of the Remove button of Build rail toolbar * @param w window the button belongs to */
| 318 | * @param w window the button belongs to |
| 319 | */ |
| 320 | static void ToggleRailButton_Remove(Window *w) |
| 321 | { |
| 322 | CloseWindowById(WC_SELECT_STATION, 0); |
| 323 | w->ToggleWidgetLoweredState(WID_RAT_REMOVE); |
| 324 | w->SetWidgetDirty(WID_RAT_REMOVE); |
| 325 | _remove_button_clicked = w->IsWidgetLowered(WID_RAT_REMOVE); |
| 326 | SetSelectionRed(_remove_button_clicked); |
| 327 | } |
| 328 | |
| 329 | /** |
| 330 | * Updates the Remove button because of Ctrl state change |
no test coverage detected