fix watcher stuck by pull

This commit is contained in:
yindf 2024-10-29 17:58:39 +08:00
parent bb29476a80
commit 28e95f086a

View file

@ -149,7 +149,10 @@ namespace SourceGit.ViewModels
SetProgressDescription($"Fetching remote: {_selectedRemote.Name}..."); SetProgressDescription($"Fetching remote: {_selectedRemote.Name}...");
rs = new Commands.Fetch(_repo.FullPath, _selectedRemote.Name, NoTags, SetProgressDescription).Exec(); rs = new Commands.Fetch(_repo.FullPath, _selectedRemote.Name, NoTags, SetProgressDescription).Exec();
if (!rs) if (!rs)
{
CallUIThread(() => _repo.SetWatcherEnabled(true));
return false; return false;
}
_repo.MarkFetched(); _repo.MarkFetched();