mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
fix: changes list sometimes did not update (#2150)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -467,7 +467,6 @@ namespace SourceGit.ViewModels
|
||||
|
||||
private void Refresh()
|
||||
{
|
||||
_changes = [];
|
||||
_requestingRevisionFiles = false;
|
||||
_revisionFiles = null;
|
||||
|
||||
@@ -481,7 +480,12 @@ namespace SourceGit.ViewModels
|
||||
ScrollOffset = Vector.Zero;
|
||||
|
||||
if (_commit == null)
|
||||
{
|
||||
Changes = [];
|
||||
VisibleChanges = [];
|
||||
SelectedChanges = null;
|
||||
return;
|
||||
}
|
||||
|
||||
if (_cancellationSource is { IsCancellationRequested: false })
|
||||
_cancellationSource.Cancel();
|
||||
|
||||
Reference in New Issue
Block a user