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) { void _updateStatus(fusion.FusionStatus fusionStatus) {
switch (fusionStatus) { switch (fusionStatus) {
case fusion.FusionStatus.setup: case fusion.FusionStatus.setup:
_uiState?.connecting = CashFusionStatus.waiting; _uiState?.outputs = CashFusionStatus.waiting;
break; break;
case fusion.FusionStatus.waiting: case fusion.FusionStatus.waiting:
_uiState?.connecting = CashFusionStatus.waiting; _uiState?.outputs = CashFusionStatus.success;
break; break;
case fusion.FusionStatus.connecting: case fusion.FusionStatus.connecting:
_uiState?.connecting = CashFusionStatus.waiting; _uiState?.connecting = CashFusionStatus.waiting;
break; break;
case fusion.FusionStatus.running: case fusion.FusionStatus.running:
_uiState?.connecting = CashFusionStatus.success;
_uiState?.fusing = CashFusionStatus.fusing; _uiState?.fusing = CashFusionStatus.fusing;
break; break;
case fusion.FusionStatus.complete: case fusion.FusionStatus.complete: