mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
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>
This commit is contained in:
@@ -53,6 +53,9 @@ namespace SourceGit.ViewModels
|
||||
get => _commit;
|
||||
set
|
||||
{
|
||||
if (_commit != null && value != null && _commit.SHA.Equals(value.SHA, StringComparison.Ordinal))
|
||||
return;
|
||||
|
||||
if (SetProperty(ref _commit, value))
|
||||
Refresh();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user