Skip to content

Commit 1bd2044

Browse files
committed
ux: show conflict description in change status icon
Signed-off-by: leo <[email protected]>
1 parent f0c77ff commit 1bd2044

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Views/ChangeStatusIcon.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,16 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
126126
}
127127

128128
if (isUnstaged)
129-
ToolTip.SetTip(this, TIPS[(int)c.WorkTree]);
129+
{
130+
if (c.IsConflicted)
131+
ToolTip.SetTip(this, $"Conflict ({c.ConflictDesc})");
132+
else
133+
ToolTip.SetTip(this, TIPS[(int)c.WorkTree]);
134+
}
130135
else
136+
{
131137
ToolTip.SetTip(this, TIPS[(int)c.Index]);
138+
}
132139

133140
InvalidateVisual();
134141
}

0 commit comments

Comments
 (0)