mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
fix<WorkingCopy>: can NOT use Models.Change.IsAddedToIndex to determin whether it's staged or not
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user