Browse Source

Windows UX improvement: improve the windows 1.5s closing workaround

QGC4.4
Stefan Dunca 6 years ago
parent
commit
f914163064
  1. 7
      src/ui/MainRootWindow.qml

7
src/ui/MainRootWindow.qml

@ -192,6 +192,9 @@ ApplicationWindow { @@ -192,6 +192,9 @@ ApplicationWindow {
}
function finishCloseProcess() {
if(ScreenTools.isWindows) {
hide()
}
QGroundControl.linkManager.shutdown()
// The above shutdown causes a flurry of activity as the vehicle components are removed. This in turn
// causes the Windows Version of Qt to crash if you allow the close event to be accepted. In order to prevent
@ -210,6 +213,10 @@ ApplicationWindow { @@ -210,6 +213,10 @@ ApplicationWindow {
repeat: false
onTriggered: {
reallyClose()
if(ScreenTools.isWindows) {
// Closing the app while main is hidden doesn't work
Qt.callLater(Qt.quit)
}
}
}

Loading…
Cancel
Save