fix: remove binding error in debug mode (#1338)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-05-20 21:44:28 +08:00
parent f0d1d460a9
commit 53c6fc8999
No known key found for this signature in database
6 changed files with 11 additions and 6 deletions

View file

@ -7,6 +7,9 @@ namespace SourceGit.Converters
{
public static class ListConverters
{
public static readonly FuncValueConverter<IList, string> Count =
new FuncValueConverter<IList, string>(v => v == null ? "0" : $"{v.Count}");
public static readonly FuncValueConverter<IList, string> ToCount =
new FuncValueConverter<IList, string>(v => v == null ? "(0)" : $"({v.Count})");