Fix #14756: Invalidate nested focus before widget container is cleared. (#14809)

This commit is contained in:
Cyprian Klimaszewski
2025-12-06 18:52:44 +01:00
committed by GitHub
parent 92e895a37a
commit abf8438a1b
6 changed files with 38 additions and 11 deletions

View File

@@ -251,9 +251,7 @@ void PickerWindow::ConstructWindow()
void PickerWindow::OnInit()
{
this->badge_classes = GUIBadgeClasses(this->callbacks.GetFeature());
auto container = this->GetWidget<NWidgetContainer>(WID_PW_BADGE_FILTER);
this->badge_filters = AddBadgeDropdownFilters(*container, WID_PW_BADGE_FILTER, COLOUR_DARK_GREEN, this->callbacks.GetFeature());
this->badge_filters = AddBadgeDropdownFilters(this, WID_PW_BADGE_FILTER, WID_PW_BADGE_FILTER, COLOUR_DARK_GREEN, this->callbacks.GetFeature());
this->widget_lookup.clear();
this->nested_root->FillWidgetLookup(this->widget_lookup);