From 992ece4a4ccafa0aab6b0126962e26fa77598873 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 19 Jan 2022 09:23:44 +0000 Subject: [PATCH] Fix #16449: Viewport doesn't close when switching tabs --- distribution/changelog.txt | 1 + src/openrct2-ui/scripting/CustomWindow.cpp | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index a182662ed0..0ac88e4547 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -34,6 +34,7 @@ - Fix: [#16162] Go Karts speeds are not correctly randomised, they only go very fast or very slow. - Fix: [#16188] Medium-size banked turns on the Twister and Vertical Roller Coaster have incorrect support placement (partly original bug). - Fix: [#16327] Crash on malformed network packet. +- Fix: [#16449] [Plugin] Viewport doesn't hide when switching tabs. 0.3.5.1 (2021-11-21) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/scripting/CustomWindow.cpp b/src/openrct2-ui/scripting/CustomWindow.cpp index 7de4b67b20..e0d1cd3d87 100644 --- a/src/openrct2-ui/scripting/CustomWindow.cpp +++ b/src/openrct2-ui/scripting/CustomWindow.cpp @@ -807,6 +807,14 @@ namespace OpenRCT2::Ui::Windows } } } + else + { + RemoveViewport(); + } + } + else + { + RemoveViewport(); } }