feat: sort tags

This commit is contained in:
Anna 2021-12-13 05:26:45 -05:00
parent 5ae05d15c7
commit c233a1c0cb
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();
}