Skip to content

Commit 2231446

Browse files
Reset Color
1 parent a3f2524 commit 2231446

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Files.Backend/ViewModels/FileTags/ListedTagViewModel.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Files.Backend.ViewModels.FileTags
55
public class ListedTagViewModel : ObservableObject
66
{
77
private TagViewModel tag;
8-
public TagViewModel Tag
8+
public TagViewModel Tag
99
{
1010
get => tag;
1111
set => SetProperty(ref tag, value);
@@ -15,7 +15,11 @@ public TagViewModel Tag
1515
public bool IsEditing
1616
{
1717
get => isEditing;
18-
set => SetProperty(ref isEditing, value);
18+
set
19+
{
20+
if (SetProperty(ref isEditing, value) && !value)
21+
NewColor = tag.Color;
22+
}
1923
}
2024

2125
private bool isNameValid = true;

0 commit comments

Comments
 (0)