Merge pull request #16668 from IntelOrca/fix/plugin-pressed-tab

Fix pressed tab for plugin windows
This commit is contained in:
Duncan 2022-02-17 16:13:41 +00:00 committed by GitHub
commit ad86544c83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -842,9 +842,9 @@ namespace OpenRCT2::Ui::Windows
{
for (size_t i = 0; i < numTabs; i++)
{
pressed_widgets &= ~(1ULL << (WIDX_TAB_0 + i));
SetWidgetPressed(static_cast<rct_widgetindex>(WIDX_TAB_0 + i), false);
}
pressed_widgets |= 1ULL << (WIDX_TAB_0 + page);
SetWidgetPressed(WIDX_TAB_0 + page, true);
}
}
@ -875,9 +875,6 @@ namespace OpenRCT2::Ui::Windows
void RefreshWidgets()
{
pressed_widgets = 0;
disabled_widgets = 0;
auto& info = GetInfo(this);
auto& widgetList = info.Widgets;