mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
desktop fixes
This commit is contained in:
parent
6197cc6b6a
commit
381a6b7b4b
1 changed files with 13 additions and 2 deletions
|
@ -232,7 +232,7 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
|||
child: PrimaryButton(
|
||||
buttonHeight: ButtonHeight.m,
|
||||
label: "Fuse again",
|
||||
onPressed: () => _fuseAgain,
|
||||
onPressed: _fuseAgain,
|
||||
),
|
||||
),
|
||||
if (_succeeded)
|
||||
|
@ -244,7 +244,7 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
|||
child: PrimaryButton(
|
||||
buttonHeight: ButtonHeight.m,
|
||||
label: "Try again",
|
||||
onPressed: () => _fuseAgain,
|
||||
onPressed: _fuseAgain,
|
||||
),
|
||||
),
|
||||
if (_failed)
|
||||
|
@ -290,6 +290,17 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
|||
|
||||
final fusionInfo = ref.read(prefsChangeNotifierProvider).fusionServerInfo;
|
||||
|
||||
try {
|
||||
fusionWallet.uiState = ref.read(
|
||||
fusionProgressUIStateProvider(widget.walletId),
|
||||
);
|
||||
} catch (e) {
|
||||
if (!e.toString().contains(
|
||||
"FusionProgressUIState was already set for ${widget.walletId}")) {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
unawaited(fusionWallet.fuse(fusionInfo: fusionInfo));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue