Commit c67e8397 authored by Don Gagne's avatar Don Gagne

Fix show dialog while animation running

parent 35da67de
......@@ -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 {
}
function showMessage(title, message, buttons) {
__stopAllAnimations()
__dialogCharWidth = 50
__dialogTitle = title
__messageDialogText = message
......
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