Closes the window, deliberately *without* executing the callback.
| 265 | |
| 266 | // Closes the window, deliberately *without* executing the callback. |
| 267 | void ProgressWindowClose() |
| 268 | { |
| 269 | auto* windowMgr = GetWindowManager(); |
| 270 | auto window = windowMgr->FindByClass(WindowClass::progressWindow); |
| 271 | if (window == nullptr) |
| 272 | { |
| 273 | return; |
| 274 | } |
| 275 | auto progressWindow = static_cast<ProgressWindow*>(window); |
| 276 | progressWindow->setCloseCallback(nullptr); |
| 277 | progressWindow->close(); |
| 278 | } |
| 279 | } // namespace OpenRCT2::Ui::Windows |
no test coverage detected