mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
enhance: reset diff view context for empty commit
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
bdf439a742
commit
61d7f36be4
1 changed files with 3 additions and 0 deletions
|
@ -686,6 +686,9 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
Changes = changes;
|
||||
VisibleChanges = visible;
|
||||
|
||||
if (visible.Count == 0)
|
||||
SelectedChanges = null;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue