MALINKA-868: When no accounts show welcome screen

This commit is contained in:
Elena Nazarova
2022-12-16 11:06:52 +03:00
committed by Никита Чирухин
parent 80fbb82695
commit b8d24912a0
3 changed files with 4 additions and 3 deletions
@@ -36,7 +36,7 @@ final class AccountControllerManual: UIViewController {
if let navigationController = self.navigationController {
self.navigationItem.leftBarButtonItem = .pop(self, { vc in vc.dismiss(animated: true) })
self.navigationItem.leftBarButtonItem = .pop(self)
navigationController.navigationBar.setBackgroundImage(UIImage(), for: .default)
navigationController.navigationBar.shadowImage = UIImage()
@@ -37,8 +37,7 @@ class AccountOnboardingControllerStartWay: UIViewController {
@IBAction func privateKeyPressed(_ sender: Any) {
AccountViewAuthorize.showGetPassword(in: self) { _ in
let manualController = StoryboardScene.Account.manual.instantiate()
manualController.privateKeyHasBeenProcessed = { [weak self] in self?.navigationController?.popViewController(animated: true)
}
manualController.privateKeyHasBeenProcessed = { [weak self] in self?.navigationController?.popViewController(animated: true) }
self.navigationController?.pushViewController(manualController, animated: true)
}
}
@@ -362,6 +362,8 @@ final class MainController: UIViewController {
self.inviteView.changeVisibility(Accounts().hasActiveAccounts)
self.updateMsgCount()
if Accounts().collection.isEmpty { self.showWalletBoarding() }
}
func setupSubscriptions() {