From bfd364752bc27711b243751d37d40d7636e1ac06 Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 22 Jun 2024 19:05:11 +0800 Subject: [PATCH] fix: crash while running WorkingCopy.Clear --- src/ViewModels/WorkingCopy.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ViewModels/WorkingCopy.cs b/src/ViewModels/WorkingCopy.cs index 8b9ef9cf..fd3dc569 100644 --- a/src/ViewModels/WorkingCopy.cs +++ b/src/ViewModels/WorkingCopy.cs @@ -131,7 +131,7 @@ namespace SourceGit.ViewModels } else { - SelectedStaged = null; + SelectedStaged = []; if (value.Count == 1) SetDetail(value[0]); @@ -156,7 +156,7 @@ namespace SourceGit.ViewModels } else { - SelectedUnstaged = null; + SelectedUnstaged = []; if (value.Count == 1) SetDetail(value[0]);