mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 12:29:37 +00:00
desktop xmr/wow single wallet opening bug fix
This commit is contained in:
parent
fb2d05eadd
commit
ffda21f513
1 changed files with 8 additions and 3 deletions
|
@ -46,10 +46,15 @@ class _WalletTableState extends ConsumerState<WalletSummaryTable> {
|
||||||
|
|
||||||
VoidCallback? expandOverride;
|
VoidCallback? expandOverride;
|
||||||
if (providers.length == 1) {
|
if (providers.length == 1) {
|
||||||
expandOverride = () {
|
expandOverride = () async {
|
||||||
Navigator.of(context).pushNamed(
|
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,
|
DesktopWalletView.routeName,
|
||||||
arguments: ref.read(providers.first).walletId,
|
arguments: manager.walletId,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue