Skip to content

Commit cb4ad63

Browse files
committed
fix: discarding changes with selected changes should never be traited as Discard all changes (#904)
1 parent 90c04f1 commit cb4ad63

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/ViewModels/WorkingCopy.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,7 @@ public async void UnstageChanges(List<Models.Change> changes, Models.Change next
417417
public void Discard(List<Models.Change> changes)
418418
{
419419
if (_repo.CanCreatePopup())
420-
{
421-
if (changes.Count == _unstaged.Count && _staged.Count == 0)
422-
_repo.ShowPopup(new Discard(_repo));
423-
else
424-
_repo.ShowPopup(new Discard(_repo, changes));
425-
}
420+
_repo.ShowPopup(new Discard(_repo, changes));
426421
}
427422

428423
public async void UseTheirs(List<Models.Change> changes)

0 commit comments

Comments
 (0)