From 110858eaa25496df2461ed68c0bfa938d8488813 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 26 Aug 2024 18:05:57 +0800 Subject: [PATCH] enhance: mark working copy dirty after stash changes (#411) --- src/ViewModels/StashChanges.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/StashChanges.cs b/src/ViewModels/StashChanges.cs index cdeecf7b..9a06ff9a 100644 --- a/src/ViewModels/StashChanges.cs +++ b/src/ViewModels/StashChanges.cs @@ -57,7 +57,11 @@ namespace SourceGit.ViewModels return Task.Run(() => { new Commands.Stash(_repo.FullPath).Push(jobs, Message); - CallUIThread(() => _repo.SetWatcherEnabled(true)); + CallUIThread(() => + { + _repo.MarkWorkingCopyDirtyManually(); + _repo.SetWatcherEnabled(true); + }); return true; }); }