From 15221ee34882e851cb6cd68a032b506d616d1ac9 Mon Sep 17 00:00:00 2001 From: Danny Moesch Date: Sun, 29 Mar 2020 22:37:43 +0200 Subject: [PATCH] Update server authentication method in main thread --- .../GitRepositorySettingsTableViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) }