WIP ui state updates

This commit is contained in:
sneurlax 2023-10-13 12:50:21 -05:00
parent 75a84c740f
commit 3266b623b6

View file

@ -89,15 +89,16 @@ mixin FusionWalletInterface {
void _updateStatus(fusion.FusionStatus fusionStatus) {
switch (fusionStatus) {
case fusion.FusionStatus.setup:
_uiState?.connecting = CashFusionStatus.waiting;
_uiState?.outputs = CashFusionStatus.waiting;
break;
case fusion.FusionStatus.waiting:
_uiState?.connecting = CashFusionStatus.waiting;
_uiState?.outputs = CashFusionStatus.success;
break;
case fusion.FusionStatus.connecting:
_uiState?.connecting = CashFusionStatus.waiting;
break;
case fusion.FusionStatus.running:
_uiState?.connecting = CashFusionStatus.success;
_uiState?.fusing = CashFusionStatus.fusing;
break;
case fusion.FusionStatus.complete: