From fd6bb546f7d1f9699bdb9b9a4d3f351997f66519 Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 19 Oct 2023 17:10:44 -0600 Subject: [PATCH] untested fusion ui state update change --- lib/services/mixins/fusion_wallet_interface.dart | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/services/mixins/fusion_wallet_interface.dart b/lib/services/mixins/fusion_wallet_interface.dart index 9ed0980ab..5be8f4747 100644 --- a/lib/services/mixins/fusion_wallet_interface.dart +++ b/lib/services/mixins/fusion_wallet_interface.dart @@ -417,6 +417,12 @@ mixin FusionWalletInterface { }) async { // Initial attempt for CashFusion integration goes here. + _updateStatus(status: fusion.FusionStatus.reset); + _updateStatus( + status: fusion.FusionStatus.connecting, + info: "Connecting to the CashFusion server.", + ); + // Use server host and port which ultimately come from text fields. fusion.FusionParams serverParams = fusion.FusionParams( serverHost: fusionInfo.host, @@ -484,6 +490,14 @@ mixin FusionWalletInterface { } while (shouldFuzeAgain()) { + if (_completedFuseCount > 0 || _failedFuseCount > 0) { + _updateStatus(status: fusion.FusionStatus.reset); + _updateStatus( + status: fusion.FusionStatus.connecting, + info: "Connecting to the CashFusion server.", + ); + } + // refresh wallet utxos await _updateWalletUTXOS();