From d0a8c9fa925c0f4955e775364efe4aa2f72bf245 Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 4 Jun 2020 21:14:49 +0100 Subject: [PATCH] Fix plugin, window update not being called (#11871) For windows with no tabs. --- src/openrct2-ui/scripting/CustomWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/scripting/CustomWindow.cpp b/src/openrct2-ui/scripting/CustomWindow.cpp index 6b00b7fc91..b7dac7135b 100644 --- a/src/openrct2-ui/scripting/CustomWindow.cpp +++ b/src/openrct2-ui/scripting/CustomWindow.cpp @@ -577,9 +577,10 @@ namespace OpenRCT2::Ui::Windows } widget_invalidate(w, WIDX_TAB_0 + w->page); } - InvokeEventHandler(info.Owner, info.Desc.OnUpdate); } + InvokeEventHandler(info.Owner, info.Desc.OnUpdate); + // Since the plugin may alter widget positions and sizes during an update event, // we need to force an update for all list view scrollbars rct_widgetindex widgetIndex = 0;