Fix trusted daemon settings

This commit is contained in:
pokkst 2023-12-07 18:07:47 -06:00
parent 0a9d774f18
commit 384d440fe3
No known key found for this signature in database
GPG key ID: EC4FAAA66859FAA4
2 changed files with 2 additions and 2 deletions

View file

@ -87,8 +87,8 @@ class HomeFragment : Fragment(), TxInfoAdapterListener {
lifecycleScope.launch(Dispatchers.IO) {
Timber.d("Updating daemon:: $daemon")
WalletManager.instance?.setDaemon(daemon)
WalletManager.instance?.wallet?.setTrustedDaemon(daemon.trusted)
WalletManager.instance?.wallet?.init(0)
WalletManager.instance?.wallet?.setTrustedDaemon(daemon.trusted)
WalletManager.instance?.wallet?.startRefresh()
}
}

View file

@ -64,8 +64,8 @@ class MoneroHandlerThread(name: String, val listener: Listener?, wallet: Wallet)
wallet.setProxy(proxy)
}
WalletManager.instance?.setDaemon(currentNode)
currentNode?.trusted?.let { wallet.setTrustedDaemon(it) }
wallet.init(0)
currentNode?.trusted?.let { wallet.setTrustedDaemon(it) }
wallet.setListener(this)
wallet.startRefresh()
}