desktop xmr/wow single wallet opening bug fix

This commit is contained in:
julian 2023-01-25 17:42:20 -06:00
parent 8cd34fc228
commit cbf969ef54

View file

@ -46,10 +46,15 @@ class _WalletTableState extends ConsumerState<WalletSummaryTable> {
VoidCallback? expandOverride;
if (providers.length == 1) {
expandOverride = () {
Navigator.of(context).pushNamed(
expandOverride = () async {
final manager = ref.read(providers.first);
if (manager.coin == Coin.monero ||
manager.coin == Coin.wownero) {
await manager.initializeExisting();
}
await Navigator.of(context).pushNamed(
DesktopWalletView.routeName,
arguments: ref.read(providers.first).walletId,
arguments: manager.walletId,
);
};
}