1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Fix plugin, window update not being called (#11871)

For windows with no tabs.
This commit is contained in:
Ted John
2020-06-04 21:14:49 +01:00
committed by GitHub
parent 6312b27fa7
commit d0a8c9fa92

View File

@@ -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;