From 142ee5a327e65f105b6eb3defc95111dca9cc2f0 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 13 May 2025 13:01:15 +0800 Subject: [PATCH] ux: use localized text instead of hard-coded string `annotated` (#1305) --- src/Commands/QueryTags.cs | 3 +-- src/Views/TagsView.axaml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/Commands/QueryTags.cs b/src/Commands/QueryTags.cs index f830a189..dd5eaa47 100644 --- a/src/Commands/QueryTags.cs +++ b/src/Commands/QueryTags.cs @@ -29,14 +29,13 @@ namespace SourceGit.Commands continue; var name = subs[0].Substring(10); - var message = subs[5].Trim(); tags.Add(new Models.Tag() { Name = name, IsAnnotated = subs[1].Equals("tag", StringComparison.Ordinal), SHA = string.IsNullOrEmpty(subs[3]) ? subs[2] : subs[3], CreatorDate = ulong.Parse(subs[4]), - Message = string.IsNullOrEmpty(message) ? name : message, + Message = subs[5].Trim(), }); } diff --git a/src/Views/TagsView.axaml b/src/Views/TagsView.axaml index 0c66e8a6..f8e6f8d7 100644 --- a/src/Views/TagsView.axaml +++ b/src/Views/TagsView.axaml @@ -29,16 +29,16 @@ - - + + - + - + @@ -86,16 +86,16 @@ - - + + - + - +