mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
enhance: async refresh operations in Watcher (#961)
This commit is contained in:
parent
c61ecb0bb0
commit
bead749c57
1 changed files with 4 additions and 4 deletions
|
@ -136,20 +136,20 @@ namespace SourceGit.Models
|
||||||
if (_updateSubmodules > 0 && now > _updateSubmodules)
|
if (_updateSubmodules > 0 && now > _updateSubmodules)
|
||||||
{
|
{
|
||||||
_updateSubmodules = 0;
|
_updateSubmodules = 0;
|
||||||
_repo.RefreshSubmodules();
|
Task.Run(_repo.RefreshSubmodules);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_updateStashes > 0 && now > _updateStashes)
|
if (_updateStashes > 0 && now > _updateStashes)
|
||||||
{
|
{
|
||||||
_updateStashes = 0;
|
_updateStashes = 0;
|
||||||
_repo.RefreshStashes();
|
Task.Run(_repo.RefreshStashes);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_updateTags > 0 && now > _updateTags)
|
if (_updateTags > 0 && now > _updateTags)
|
||||||
{
|
{
|
||||||
_updateTags = 0;
|
_updateTags = 0;
|
||||||
_repo.RefreshTags();
|
Task.Run(_repo.RefreshTags);
|
||||||
_repo.RefreshCommits();
|
Task.Run(_repo.RefreshCommits);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue