Skip to content

Commit 910431a

Browse files
committed
enhance: do not refresh commit details if the new selected commit points to the same revision with old one (#1989)
Signed-off-by: leo <longshuang@msn.cn>
1 parent 0e08d8e commit 910431a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ViewModels/CommitDetail.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public Models.Commit Commit
5353
get => _commit;
5454
set
5555
{
56+
if (_commit != null && value != null && _commit.SHA.Equals(value.SHA, StringComparison.Ordinal))
57+
return;
58+
5659
if (SetProperty(ref _commit, value))
5760
Refresh();
5861
}

0 commit comments

Comments
 (0)