Browse Source

Fix show dialog while animation running

QGC4.4
Don Gagne 10 years ago
parent
commit
c67e8397b6
  1. 10
      src/QmlControls/QGCView.qml

10
src/QmlControls/QGCView.qml

@ -106,7 +106,15 @@ FactPanel { @@ -106,7 +106,15 @@ FactPanel {
}
}
function __stopAllAnimations() {
if (__animateHideDialog.running) {
__animateHideDialog.stop()
}
}
function showDialog(component, title, charWidth, buttons) {
__stopAllAnimations()
__dialogCharWidth = charWidth
__dialogTitle = title
@ -120,6 +128,8 @@ FactPanel { @@ -120,6 +128,8 @@ FactPanel {
}
function showMessage(title, message, buttons) {
__stopAllAnimations()
__dialogCharWidth = 50
__dialogTitle = title
__messageDialogText = message

Loading…
Cancel
Save