MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ProgressWindowClose

Function ProgressWindowClose

src/openrct2-ui/windows/ProgressWindow.cpp:267–278  ·  view source on GitHub ↗

Closes the window, deliberately *without* executing the callback.

Source from the content-addressed store, hash-verified

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

Callers 2

OpenIntentMethod · 0.85
ForceCloseMethod · 0.85

Calls 4

GetWindowManagerFunction · 0.85
setCloseCallbackMethod · 0.80
closeMethod · 0.65
FindByClassMethod · 0.45

Tested by

no test coverage detected