We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f2524 commit 2231446Copy full SHA for 2231446
src/Files.Backend/ViewModels/FileTags/ListedTagViewModel.cs
@@ -5,7 +5,7 @@ namespace Files.Backend.ViewModels.FileTags
5
public class ListedTagViewModel : ObservableObject
6
{
7
private TagViewModel tag;
8
- public TagViewModel Tag
+ public TagViewModel Tag
9
10
get => tag;
11
set => SetProperty(ref tag, value);
@@ -15,7 +15,11 @@ public TagViewModel Tag
15
public bool IsEditing
16
17
get => isEditing;
18
- set => SetProperty(ref isEditing, value);
+ set
19
+ {
20
+ if (SetProperty(ref isEditing, value) && !value)
21
+ NewColor = tag.Color;
22
+ }
23
}
24
25
private bool isNameValid = true;
0 commit comments