mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 14:29:13 +02:00
use timer for upload click handle to avoid focus issue
This commit is contained in:
parent
df6eb8a081
commit
6d6a53a69a
1 changed files with 16 additions and 1 deletions
|
@ -447,7 +447,22 @@ Window {
|
||||||
width: 155
|
width: 155
|
||||||
|
|
||||||
enabled: fileUrlTextField.text != ""
|
enabled: fileUrlTextField.text != ""
|
||||||
onClicked: root.uploadClicked()
|
onClicked: uploadClickedTimer.running = true
|
||||||
|
|
||||||
|
// For some reason trigginer an API that enters
|
||||||
|
// an internal event loop directly from the button clicked
|
||||||
|
// trigger below causes the appliction to behave oddly.
|
||||||
|
// Most likely because the button onClicked handling is never
|
||||||
|
// completed until the function returns.
|
||||||
|
// FIXME find a better way of handling the input dialogs that
|
||||||
|
// doesn't trigger this.
|
||||||
|
Timer {
|
||||||
|
id: uploadClickedTimer
|
||||||
|
interval: 5
|
||||||
|
repeat: false
|
||||||
|
running: false
|
||||||
|
onTriggered: uploadClicked();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue