Update server authentication method in main thread

This commit is contained in:
Danny Moesch
2020-03-29 22:37:43 +02:00
committed by Mingshen Sun
parent 4bed5fcf8b
commit 15221ee348

View File

@@ -227,10 +227,10 @@ class GitRepositorySettingsTableViewController: UITableViewController {
DispatchQueue.main.async {
SVProgressHUD.showSuccess(withStatus: "Imported".localize())
SVProgressHUD.dismiss(withDelay: 1)
Defaults.gitSSHKeySource = type(of: keyImporter).keySource
self.gitAuthenticationMethod = .key
self.sshLabel?.isEnabled = true
}
Defaults.gitSSHKeySource = type(of: keyImporter).keySource
self.gitAuthenticationMethod = .key
self.sshLabel?.isEnabled = true
} catch {
Utils.alert(title: "Error".localize(), message: error.localizedDescription, controller: self)
}