mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
[PowerAccent] Fix toolbar positioning on first launch (#20135)
As position is being set according to toolbar width&height (depends on num of characters), on first toolbar-show size of the toolbar is wrong (list items are not set yet). Therefore, first set characters and then position.
This commit is contained in:
@@ -38,8 +38,8 @@ public partial class Selector : Window, IDisposable
|
|||||||
this.Visibility = isActive ? Visibility.Visible : Visibility.Collapsed;
|
this.Visibility = isActive ? Visibility.Visible : Visibility.Collapsed;
|
||||||
if (isActive)
|
if (isActive)
|
||||||
{
|
{
|
||||||
CenterWindow();
|
|
||||||
characters.ItemsSource = chars;
|
characters.ItemsSource = chars;
|
||||||
|
CenterWindow();
|
||||||
Microsoft.PowerToys.Telemetry.PowerToysTelemetry.Log.WriteEvent(new PowerAccent.Core.Telemetry.PowerAccentShowAccentMenuEvent());
|
Microsoft.PowerToys.Telemetry.PowerToysTelemetry.Log.WriteEvent(new PowerAccent.Core.Telemetry.PowerAccentShowAccentMenuEvent());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user