mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 22:01:10 +08:00
code_review: PR #1492
- Remove all synchronous method in commands - `Command.ReadToEndAsync` now is protected method - Rename `ResultAsync` to `GetResultAsync` - Call `ConfigureAwait(false)` when there's no context Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -65,10 +65,11 @@ namespace SourceGit.ViewModels
|
||||
|
||||
await new Commands.Submodule(_repo.FullPath)
|
||||
.Use(log)
|
||||
.UpdateAsync(targets, EnableInit, EnableRecursive, EnableRemote);
|
||||
.UpdateAsync(targets, EnableInit, EnableRecursive, EnableRemote)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
log.Complete();
|
||||
await CallUIThreadAsync(() => _repo.SetWatcherEnabled(true));
|
||||
_repo.SetWatcherEnabled(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user