desktop fixes

This commit is contained in:
julian 2023-10-25 09:57:25 -06:00
parent 6197cc6b6a
commit 381a6b7b4b

View file

@ -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));
}
}