diff --git a/pass/Controllers/GitRepositorySettingsTableViewController.swift b/pass/Controllers/GitRepositorySettingsTableViewController.swift index 00c8e1e..5f305c1 100644 --- a/pass/Controllers/GitRepositorySettingsTableViewController.swift +++ b/pass/Controllers/GitRepositorySettingsTableViewController.swift @@ -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) }