Commit 2d358906 authored by Gus Grubba's avatar Gus Grubba

Don't discard PlanView

parent 5b4407a0
...@@ -33,7 +33,6 @@ ApplicationWindow { ...@@ -33,7 +33,6 @@ ApplicationWindow {
readonly property string settingsViewSource: "AppSettings.qml" readonly property string settingsViewSource: "AppSettings.qml"
readonly property string setupViewSource: "SetupView.qml" readonly property string setupViewSource: "SetupView.qml"
readonly property string planViewSource: "PlanView.qml"
readonly property string analyzeViewSource: !ScreenTools.isMobile ? "AnalyzeView.qml" : "MavlinkConsolePage.qml" readonly property string analyzeViewSource: !ScreenTools.isMobile ? "AnalyzeView.qml" : "MavlinkConsolePage.qml"
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
...@@ -89,9 +88,7 @@ ApplicationWindow { ...@@ -89,9 +88,7 @@ ApplicationWindow {
function showPlanView() { function showPlanView() {
viewSwitch(true) viewSwitch(true)
if (mainContentWindow.source !== planViewSource) { mainContentWindow.source = ""
mainContentWindow.source = planViewSource
}
} }
function showAnalyzeView() { function showAnalyzeView() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment