diff --git a/src/PlanView/PlanToolBarIndicators.qml b/src/PlanView/PlanToolBarIndicators.qml index 7b9d457..a4daffa 100644 --- a/src/PlanView/PlanToolBarIndicators.qml +++ b/src/PlanView/PlanToolBarIndicators.qml @@ -71,15 +71,17 @@ Item { } // Progress bar - - on_ControllerProgressPctChanged: { - if (_controllerProgressPct === 1) { - missionStats.visible = false - uploadCompleteText.visible = true - progressBar.visible = false - resetProgressTimer.start() - } else if (_controllerProgressPct > 0) { - progressBar.visible = true + Connections { + target: _controllerValid ? _planMasterController.missionController : undefined + onProgressPctChanged: { + if (_controllerProgressPct === 1) { + missionStats.visible = false + uploadCompleteText.visible = true + progressBar.visible = false + resetProgressTimer.start() + } else if (_controllerProgressPct > 0) { + progressBar.visible = true + } } }