Fix #15451: Guest List name filter remains after group selection

This commit is contained in:
seanmajorpayne 2021-10-09 19:49:26 +09:00 committed by GitHub
parent 22ae9e8dc2
commit e8b6e24498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -28,6 +28,7 @@
- Fix: [#15255] Tile Inspector shows banner information on walls that do not contain one.
- Fix: [#15257] Chat icon shows in scenario/track editor. Other icons don't disable when deactivated in options menu.
- Fix: [#15289] Unexpected behavior with duplicated banners which also caused desyncs in multiplayer.
- Fix: [#15451] Guest list name filter remains after group selection.
- Fix: [#15476] Crash when placing/clearing small scenery.
- Fix: [#15487] Map animations do not work correctly when loading an exported SV6 file in vanilla RCT2.
- Fix: [#15496] Crash in paint_swinging_inverter_ship_structure().

View File

@ -321,8 +321,13 @@ public:
_selectedPage = 0;
_numPages = 1;
widgets[WIDX_TRACKING].type = WindowWidgetType::Empty;
widgets[WIDX_FILTER_BY_NAME].type = WindowWidgetType::Empty;
if (_selectedTab == TabId::Individual)
if (_selectedTab == TabId::Summarised)
{
widgets[WIDX_FILTER_BY_NAME].type = WindowWidgetType::Empty;
SetWidgetPressed(WIDX_FILTER_BY_NAME, false);
_filterName.clear();
}
else if (_selectedTab == TabId::Individual)
{
widgets[WIDX_TRACKING].type = WindowWidgetType::FlatBtn;
widgets[WIDX_FILTER_BY_NAME].type = WindowWidgetType::FlatBtn;
@ -576,6 +581,7 @@ public:
_selectedTab = TabId::Individual;
widgets[WIDX_TRACKING].type = WindowWidgetType::FlatBtn;
Invalidate();
widgets[WIDX_FILTER_BY_NAME].type = WindowWidgetType::FlatBtn;
scrolls[0].v_top = 0;
RefreshList();
}