Skip to content

Commit 54ca65e

Browse files
Update Sidebar
1 parent 2231446 commit 54ca65e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Files.App/ServicesImplementation/Settings/FileTagsSettingsService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public void CreateNewTag(string newTagName, string color)
8686
var oldTags = FileTagList.ToList();
8787
oldTags.Add(newTag);
8888
FileTagList = oldTags;
89+
OnTagsUpdated.Invoke(this, EventArgs.Empty);
8990
}
9091

9192
public void EditTag(string uid, string name, string color)
@@ -101,6 +102,7 @@ public void EditTag(string uid, string name, string color)
101102
oldTags.RemoveAt(index);
102103
oldTags.Insert(index, tag);
103104
FileTagList = oldTags;
105+
OnTagsUpdated.Invoke(this, EventArgs.Empty);
104106
}
105107

106108
public void DeleteTag(string uid)
@@ -112,6 +114,7 @@ public void DeleteTag(string uid)
112114
var oldTags = FileTagList.ToList();
113115
oldTags.RemoveAt(index);
114116
FileTagList = oldTags;
117+
OnTagsUpdated.Invoke(this, EventArgs.Empty);
115118
}
116119

117120
public override bool ImportSettings(object import)

0 commit comments

Comments
 (0)