JGProgressHUD changes

This commit is contained in:
Tha_14 2024-03-10 17:45:23 +02:00
parent a14c62e763
commit fac40bc928
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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