mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
untested fusion ui state update change
This commit is contained in:
parent
fb1a997406
commit
fd6bb546f7
1 changed files with 14 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue