feat: sort tags

This commit is contained in:
Anna 2021-12-13 05:26:45 -05:00
parent 45128396d2
commit ca8beb53cc
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
1 changed files with 1 additions and 0 deletions

View File

@ -722,6 +722,7 @@ namespace Glamaholic.Ui {
if (ImGui.InputTextWithHint("##tag-input", "Input a tag and press Enter", ref this._tagInput, 128, ImGuiInputTextFlags.EnterReturnsTrue)) {
if (!plate.Tags.Contains(this._tagInput)) {
plate.Tags.Add(this._tagInput);
plate.Tags.Sort();
this.Ui.Plugin.SaveConfig();
}