fix(Submodule): refresh submodules after updated successfully

This commit is contained in:
leo 2020-07-24 19:27:03 +08:00
parent 0e9b1574a8
commit d29e5def4b
2 changed files with 17 additions and 4 deletions

View file

@ -927,10 +927,7 @@ namespace SourceGit.UI {
}
private void UpdateSubmodule(object sender, RoutedEventArgs e) {
Waiting.Show(() => {
var errs = repo.RunCommand("submodule update", PopupManager.UpdateStatus, true);
if (errs != null) App.RaiseError(errs);
});
Waiting.Show(() => repo.UpdateSubmodule());
}
private void SubmoduleLostFocus(object sender, RoutedEventArgs e) {