feature: show tags count in tags tree (#1306)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-05-13 22:50:10 +08:00
parent 5b72b15cf2
commit 6bf930a9e0
No known key found for this signature in database
3 changed files with 24 additions and 6 deletions

View file

@ -56,8 +56,16 @@ namespace SourceGit.ViewModels
public string Tooltip
{
get => Backend is Models.Branch b ?
b.FriendlyName : (Backend is Models.Remote r ? r.URL : null);
get
{
if (Backend is Models.Branch b)
return b.FriendlyName;
if (Backend is Models.Remote r)
return r.URL;
return null;
}
}
private Models.FilterMode _filterMode = Models.FilterMode.None;