Fix 8f14894024: Badge widths were not updated on interface scale change. (#13630)

Prepare GUI badge class lists in OnInit() method of Windows, so that they handle scaling changes.
This commit is contained in:
Peter Nelson
2025-02-22 13:29:52 +00:00
committed by GitHub
parent 8566030c53
commit bb4ac915ff
5 changed files with 17 additions and 12 deletions

View File

@@ -238,11 +238,14 @@ void PickerWindow::ConstructWindow()
this->FinishInitNested(this->window_number);
this->badge_classes = GUIBadgeClasses(this->callbacks.GetFeature());
this->InvalidateData(PICKER_INVALIDATION_ALL);
}
void PickerWindow::OnInit()
{
this->badge_classes = GUIBadgeClasses(this->callbacks.GetFeature());
}
void PickerWindow::Close(int data)
{
this->callbacks.Close(data);