mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +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:
@@ -17,10 +17,10 @@
|
||||
#include "../core/EnumUtils.hpp"
|
||||
#include "../core/JobPool.h"
|
||||
#include "../core/Memory.hpp"
|
||||
#include "../interface/Window.h"
|
||||
#include "../localisation/StringIds.h"
|
||||
#include "../ride/Ride.h"
|
||||
#include "../ride/RideAudio.h"
|
||||
#include "../ui/WindowManager.h"
|
||||
#include "BannerSceneryEntry.h"
|
||||
#include "LargeSceneryObject.h"
|
||||
#include "Object.h"
|
||||
@@ -503,10 +503,6 @@ private:
|
||||
sgObject->UpdateEntryIndexes();
|
||||
}
|
||||
}
|
||||
|
||||
// HACK Scenery window will lose its tabs after changing the scenery group indexing
|
||||
// for now just close it, but it will be better to later tell it to invalidate the tabs
|
||||
WindowCloseByClass(WindowClass::Scenery);
|
||||
}
|
||||
|
||||
ObjectEntryIndex GetPrimarySceneryGroupEntryIndex(Object* loadedObject)
|
||||
|
||||
Reference in New Issue
Block a user