mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
init state provider fix
This commit is contained in:
parent
9ff14ea471
commit
8a076a8d5b
1 changed files with 3 additions and 1 deletions
|
@ -170,7 +170,9 @@ class _WalletViewState extends ConsumerState<WalletView> {
|
|||
final wallet = ref.read(pWallets).getWallet(walletId);
|
||||
coin = wallet.info.coin;
|
||||
|
||||
ref.read(currentWalletIdProvider.notifier).state = wallet.walletId;
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
ref.read(currentWalletIdProvider.notifier).state = wallet.walletId;
|
||||
});
|
||||
|
||||
if (!wallet.shouldAutoSync) {
|
||||
// enable auto sync if it wasn't enabled when loading wallet
|
||||
|
|
Loading…
Reference in a new issue