mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-14 17:23:25 +01:00
AuthenticationOperation: fix 2FA code not being displayed
Bandaid fix, it would be better to have the alert in ConnectAppleIDView
This commit is contained in:
@@ -417,14 +417,15 @@ private extension AuthenticationOperation
|
|||||||
completionHandler(nil)
|
completionHandler(nil)
|
||||||
})
|
})
|
||||||
|
|
||||||
// if self.navigationController.presentingViewController != nil
|
let keyWindow = UIApplication.shared.windows.filter { $0.isKeyWindow }.first
|
||||||
// {
|
|
||||||
// self.navigationController.present(alertController, animated: true, completion: nil)
|
if var topController = keyWindow?.rootViewController {
|
||||||
// }
|
while let presentedViewController = topController.presentedViewController {
|
||||||
// else
|
topController = presentedViewController
|
||||||
// {
|
}
|
||||||
// presentingViewController.present(alertController, animated: true, completion: nil)
|
|
||||||
// }
|
topController.present(alertController, animated: true, completion: nil)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user