Browse Source

MainRootWindow.qml: remove unused viewSwitch() function

QGC4.4
davidsastresas 1 year ago committed by Julian Oes
parent
commit
9a8acc6c1a
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 16
      src/ui/MainRootWindow.qml

16
src/ui/MainRootWindow.qml

@ -126,22 +126,6 @@ ApplicationWindow { @@ -126,22 +126,6 @@ ApplicationWindow {
return _rgPreventViewSwitch[_rgPreventViewSwitch.length - 1]
}
function viewSwitch(currentToolbar) {
toolDrawer.visible = false
toolDrawer.toolSource = ""
flightView.visible = false
planView.visible = false
toolbar.currentToolbar = currentToolbar
}
function showFlyView() {
if (!flightView.visible) {
mainWindow.showPreFlightChecklistIfNeeded()
}
viewSwitch(toolbar.flyViewToolbar)
flightView.visible = true
}
function showPlanView() {
viewSwitch(toolbar.planViewToolbar)
planView.visible = true

Loading…
Cancel
Save