Skip to content

Commit e5d2bb2

Browse files
authored
Fix: Fixed issue where default tags had random uids (#11123)
1 parent 52f14b0 commit e5d2bb2

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ internal sealed class FileTagsSettingsService : BaseJsonSettings, IFileTagsSetti
1717

1818
private static readonly List<TagViewModel> DefaultFileTags = new List<TagViewModel>()
1919
{
20-
new("Home", "#0072BD"),
21-
new("Work", "#D95319"),
22-
new("Photos", "#EDB120"),
23-
new("Important", "#77AC30")
20+
new("Home", "#0072BD", "f7e0e137-2eb5-4fa4-a50d-ddd65df17c34"),
21+
new("Work", "#D95319", "c84a8131-c4de-47d9-9440-26e859d14b3d"),
22+
new("Photos", "#EDB120", "d4b8d4bd-ceaf-4e58-ac61-a185fcf96c5d"),
23+
new("Important", "#77AC30", "79376daf-c44a-4fe4-aa3b-8b30baea453e")
2424
};
2525

2626
public FileTagsSettingsService()

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ public sealed partial class TagViewModel : ObservableObject
1616
[JsonPropertyName("Uid")]
1717
public string Uid { get; set; }
1818

19-
public TagViewModel(string name, string color)
20-
: this(name, color, Guid.NewGuid().ToString())
21-
{
22-
}
23-
2419
[JsonConstructor]
2520
public TagViewModel(string name, string color, string uid)
2621
{

0 commit comments

Comments
 (0)