mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
CmdPal: Update the alias tags, before triggering the UI to change (#38172)
Yea, this one hurts. Pretty obviously, we're sending the PropChanged _before_ the `Tags` are actually updated. Noticed on 0.0.16+ builds
This commit is contained in:
@@ -207,12 +207,11 @@ public sealed partial class TopLevelViewModel : ObservableObject, IListItem
|
|||||||
tags.Add(new Tag() { Text = Alias.SearchPrefix });
|
tags.Add(new Tag() { Text = Alias.SearchPrefix });
|
||||||
}
|
}
|
||||||
|
|
||||||
PropChanged?.Invoke(this, new PropChangedEventArgs(nameof(Tags)));
|
|
||||||
|
|
||||||
DoOnUiThread(
|
DoOnUiThread(
|
||||||
() =>
|
() =>
|
||||||
{
|
{
|
||||||
ListHelpers.InPlaceUpdateList(Tags, tags);
|
ListHelpers.InPlaceUpdateList(Tags, tags);
|
||||||
|
PropChanged?.Invoke(this, new PropChangedEventArgs(nameof(Tags)));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user