untested fusion ui state update change

This commit is contained in:
julian 2023-10-19 17:10:44 -06:00
parent fb1a997406
commit fd6bb546f7

View file

@ -417,6 +417,12 @@ mixin FusionWalletInterface {
}) async { }) async {
// Initial attempt for CashFusion integration goes here. // 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. // Use server host and port which ultimately come from text fields.
fusion.FusionParams serverParams = fusion.FusionParams( fusion.FusionParams serverParams = fusion.FusionParams(
serverHost: fusionInfo.host, serverHost: fusionInfo.host,
@ -484,6 +490,14 @@ mixin FusionWalletInterface {
} }
while (shouldFuzeAgain()) { 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 // refresh wallet utxos
await _updateWalletUTXOS(); await _updateWalletUTXOS();