MALINKA-868: When no accounts show welcome screen
This commit is contained in:
committed by
Никита Чирухин
parent
80fbb82695
commit
b8d24912a0
@@ -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()
|
||||
|
||||
+1
-2
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user