fix: crash while running WorkingCopy.Clear

This commit is contained in:
leo 2024-06-22 19:05:11 +08:00
parent dbce8eebde
commit bfd364752b
No known key found for this signature in database

View file

@ -131,7 +131,7 @@ namespace SourceGit.ViewModels
} }
else else
{ {
SelectedStaged = null; SelectedStaged = [];
if (value.Count == 1) if (value.Count == 1)
SetDetail(value[0]); SetDetail(value[0]);
@ -156,7 +156,7 @@ namespace SourceGit.ViewModels
} }
else else
{ {
SelectedUnstaged = null; SelectedUnstaged = [];
if (value.Count == 1) if (value.Count == 1)
SetDetail(value[0]); SetDetail(value[0]);