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:
leo
2025-12-19 10:27:42 +08:00
parent 0e08d8ef0b
commit 910431ab40

View File

@@ -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();
}