mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
enhance: reset diff view context for empty commit
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -686,6 +686,9 @@ namespace SourceGit.ViewModels
|
||||
{
|
||||
Changes = changes;
|
||||
VisibleChanges = visible;
|
||||
|
||||
if (visible.Count == 0)
|
||||
SelectedChanges = null;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user