[QuickAccent]Set initial selection when characters change (#22704)

This commit is contained in:
Davide Giacometti 2022-12-13 18:20:29 +01:00 committed by GitHub
parent f465daf585
commit d50b89262c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,7 @@ public partial class Selector : Window, IDisposable, INotifyPropertyChanged
if (isActive)
{
characters.ItemsSource = chars;
characters.SelectedIndex = 0;
this.UpdateLayout(); // Required for filling the actual width/height before positioning.
SetWindowPosition();
Show();