fix<WorkingCopy>: can NOT use Models.Change.IsAddedToIndex to determin whether it's staged or not

This commit is contained in:
leo 2021-04-30 18:24:35 +08:00
parent 5e593e4916
commit f7b151969e

View file

@ -120,7 +120,7 @@ namespace SourceGit.Views.Widgets {
mergePanel.Visibility = Visibility.Collapsed; mergePanel.Visibility = Visibility.Collapsed;
if (change.IsAddedToIndex) { if (!container.IsUnstaged) {
unstagedContainer.UnselectAll(); unstagedContainer.UnselectAll();
diffViewer.Diff(repo.Path, new DiffViewer.Option() { diffViewer.Diff(repo.Path, new DiffViewer.Option() {