Add additional attempt to read wallets

This commit is contained in:
Ivan Grachyov 2021-12-15 21:59:20 +03:00
parent e17c6c5def
commit 02c4f25f1f
2 changed files with 6 additions and 1 deletions

View File

@ -10,9 +10,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
private let priceService = PriceService.shared
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
walletsManager.start()
priceService.start()
gasService.start()
walletsManager.start()
return true
}

View File

@ -30,6 +30,11 @@ class AccountsListViewController: UIViewController, DataStateContainer {
override func viewDidLoad() {
super.viewDidLoad()
if walletsManager.wallets.isEmpty {
walletsManager.start()
}
navigationItem.title = forWalletSelection ? Strings.selectAccount : Strings.accounts
navigationController?.navigationBar.prefersLargeTitles = true
navigationItem.largeTitleDisplayMode = .always