xmr/wow loading fix when opened from fav card

This commit is contained in:
julian 2023-02-13 13:26:29 -06:00
parent a42e5278a9
commit 4b5386236a

View file

@ -105,20 +105,25 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
), ),
), ),
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () async {
if (Util.isDesktop) { if (coin == Coin.monero || coin == Coin.wownero) {
Navigator.of(context).pushNamed( await ref.read(managerProvider).initializeExisting();
DesktopWalletView.routeName, }
arguments: walletId, if (mounted) {
); if (Util.isDesktop) {
} else { await Navigator.of(context).pushNamed(
Navigator.of(context).pushNamed( DesktopWalletView.routeName,
WalletView.routeName, arguments: walletId,
arguments: Tuple2( );
walletId, } else {
managerProvider, await Navigator.of(context).pushNamed(
), WalletView.routeName,
); arguments: Tuple2(
walletId,
managerProvider,
),
);
}
} }
}, },
child: SizedBox( child: SizedBox(