mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +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;
|
||||
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