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:
Mike Griese
2025-03-26 16:18:18 -05:00
committed by GitHub
parent 5157ffc895
commit 51e9e9d46a

View File

@@ -207,12 +207,11 @@ public sealed partial class TopLevelViewModel : ObservableObject, IListItem
tags.Add(new Tag() { Text = Alias.SearchPrefix });
}
PropChanged?.Invoke(this, new PropChangedEventArgs(nameof(Tags)));
DoOnUiThread(
() =>
{
ListHelpers.InPlaceUpdateList(Tags, tags);
PropChanged?.Invoke(this, new PropChangedEventArgs(nameof(Tags)));
});
}