diff --git a/src/ui/MainRootWindow.qml b/src/ui/MainRootWindow.qml index 33658acbb8c3c874fb8aa50481e2fdc30ffa93e6..a1d64e7e0ad50aac6f98fc7845da17c7b7fd077a 100644 --- a/src/ui/MainRootWindow.qml +++ b/src/ui/MainRootWindow.qml @@ -75,7 +75,7 @@ ApplicationWindow { settingsWindow.visible = false setupWindow.visible = false analyzeWindow.visible = false - rootBackground.visible = false + flightView.visible = false planViewLoader.visible = false if(isPlanView) { toolbar.source = _planToolbar @@ -86,7 +86,7 @@ ApplicationWindow { function showFlyView() { viewSwitch(false) - rootBackground.visible = true + flightView.visible = true } function showPlanView() { @@ -257,17 +257,6 @@ ApplicationWindow { background: Item { id: rootBackground anchors.fill: parent - FlightDisplayView { - id: flightView - anchors.fill: parent - //----------------------------------------------------------------- - //-- Loader helper for any child, no matter how deep, to display - // elements on top of the fly (video) window. - Loader { - id: rootVideoLoader - anchors.centerIn: parent - } - } } //------------------------------------------------------------------------- @@ -297,6 +286,20 @@ ApplicationWindow { } } + //------------------------------------------------------------------------- + //-- Fly View + FlightDisplayView { + id: flightView + anchors.fill: parent + //----------------------------------------------------------------- + //-- Loader helper for any child, no matter how deep, to display + // elements on top of the fly (video) window. + Loader { + id: rootVideoLoader + anchors.centerIn: parent + } + } + //------------------------------------------------------------------------- //-- Plan View Loader {