Fix crashes of importing ssh key

This commit is contained in:
Mingshen Sun 2021-12-29 13:13:55 -08:00
parent c0582c8dba
commit b0a97d182c
2 changed files with 84 additions and 82 deletions

View file

@ -268,7 +268,9 @@ class GitRepositorySettingsTableViewController: UITableViewController, PasswordA
self.sshLabel?.isEnabled = true
}
} catch {
Utils.alert(title: "Error".localize(), message: error.localizedDescription, controller: self)
DispatchQueue.main.async {
Utils.alert(title: "Error".localize(), message: error.localizedDescription, controller: self)
}
}
}
}