diff --git a/src/UI/MainRootWindow.qml b/src/UI/MainRootWindow.qml index c571d98da98..d89de08b314 100644 --- a/src/UI/MainRootWindow.qml +++ b/src/UI/MainRootWindow.qml @@ -334,6 +334,18 @@ ApplicationWindow { } } + SubMenuButton { + id: closeButton + height: toolSelectDialog._toolButtonHeight + Layout.fillWidth: true + text: qsTr("Close %1").arg(QGroundControl.appName) + onClicked: { + if (mainWindow.allowViewSwitch()) { + mainWindow.finishCloseProcess() + } + } + } + ColumnLayout { width: innerLayout.width spacing: 0