mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
fix: discarding changes with selected changes should never be traited as Discard all changes (#904)
This commit is contained in:
@@ -417,12 +417,7 @@ namespace SourceGit.ViewModels
|
||||
public void Discard(List<Models.Change> changes)
|
||||
{
|
||||
if (_repo.CanCreatePopup())
|
||||
{
|
||||
if (changes.Count == _unstaged.Count && _staged.Count == 0)
|
||||
_repo.ShowPopup(new Discard(_repo));
|
||||
else
|
||||
_repo.ShowPopup(new Discard(_repo, changes));
|
||||
}
|
||||
_repo.ShowPopup(new Discard(_repo, changes));
|
||||
}
|
||||
|
||||
public async void UseTheirs(List<Models.Change> changes)
|
||||
|
||||
Reference in New Issue
Block a user