diff --git a/src/ViewModels/Discard.cs b/src/ViewModels/Discard.cs index 8e25a6cf..368577ff 100644 --- a/src/ViewModels/Discard.cs +++ b/src/ViewModels/Discard.cs @@ -54,19 +54,18 @@ namespace SourceGit.ViewModels return Task.Run(() => { if (_changes == null) - { Commands.Discard.All(_repo.FullPath); - } else if (_isUnstaged) - { Commands.Discard.ChangesInWorkTree(_repo.FullPath, _changes); - } else - { Commands.Discard.ChangesInStaged(_repo.FullPath, _changes); - } - CallUIThread(() => _repo.SetWatcherEnabled(true)); + CallUIThread(() => + { + _repo.MarkWorkingCopyDirtyManually(); + _repo.SetWatcherEnabled(true); + }); + return true; }); }