mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
desktop xmr/wow single wallet opening bug fix
This commit is contained in:
parent
8cd34fc228
commit
cbf969ef54
1 changed files with 8 additions and 3 deletions
|
@ -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,
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue