mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Move WindowClose family into WindowManager (#23646)
* Replace WindowClose() calls with Close method calls where possible * Move WindowClose family into WindowManager * Remove UpdateSceneryGroupIndexes hack
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
#include "../ride/RideData.h"
|
||||
#include "../ride/RideManager.hpp"
|
||||
#include "../ride/Vehicle.h"
|
||||
#include "../ui/WindowManager.h"
|
||||
#include "../util/Util.h"
|
||||
#include "../windows/Intent.h"
|
||||
#include "../world/Climate.h"
|
||||
@@ -1207,7 +1208,8 @@ static void ConsoleCommandOpen(InteractiveConsole& console, const arguments_t& a
|
||||
else
|
||||
{
|
||||
// Only this window should be open for safety reasons
|
||||
WindowCloseAll();
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
windowMgr->CloseAll();
|
||||
ContextOpenWindow(WindowClass::EditorObjectSelection);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user