JGProgressHUD changes
This commit is contained in:
parent
a14c62e763
commit
fac40bc928
@ -99,7 +99,7 @@ extension ChangePasswordController {
|
||||
let newPassword = newPasswordField.text!
|
||||
|
||||
let hud = JGProgressHUD(style: .dark)
|
||||
hud?.show(in: view)
|
||||
hud.show(in: view)
|
||||
|
||||
DispatchQueue.global(qos: .default).async { [unowned self] in
|
||||
let result = self.toxManager.changeEncryptPassword(newPassword, oldPassword: oldPassword)
|
||||
@ -112,7 +112,7 @@ extension ChangePasswordController {
|
||||
}
|
||||
|
||||
DispatchQueue.main.async { [unowned self] in
|
||||
hud?.dismiss()
|
||||
hud.dismiss()
|
||||
|
||||
if result {
|
||||
self.delegate?.changePasswordControllerDidFinishPresenting(self)
|
||||
|
@ -225,7 +225,7 @@ private extension LoginCoordinator {
|
||||
let path = ProfileManager().pathForProfileWithName(profile)
|
||||
let configuration = OCTManagerConfiguration.configurationWithBaseDirectory(path)!
|
||||
|
||||
let hud = JGProgressHUD(style: .dark)!
|
||||
let hud = JGProgressHUD(style: .dark)
|
||||
hud.show(in: self.navigationController.view)
|
||||
|
||||
ToxFactory.createToxWithConfiguration(configuration, encryptPassword: password, successBlock: { [weak self] manager -> Void in
|
||||
|
Loading…
Reference in New Issue
Block a user