From f7b151969e20130a96a4ff3b01800aea352c7930 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 30 Apr 2021 18:24:35 +0800 Subject: [PATCH] fix: can NOT use Models.Change.IsAddedToIndex to determin whether it's staged or not --- src/Views/Widgets/WorkingCopy.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Widgets/WorkingCopy.xaml.cs b/src/Views/Widgets/WorkingCopy.xaml.cs index affb8ff9..15bfb47a 100644 --- a/src/Views/Widgets/WorkingCopy.xaml.cs +++ b/src/Views/Widgets/WorkingCopy.xaml.cs @@ -120,7 +120,7 @@ namespace SourceGit.Views.Widgets { mergePanel.Visibility = Visibility.Collapsed; - if (change.IsAddedToIndex) { + if (!container.IsUnstaged) { unstagedContainer.UnselectAll(); diffViewer.Diff(repo.Path, new DiffViewer.Option() {