mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
Fix setting focus at start-up when not logged in
This commit is contained in:
parent
977eae9f86
commit
6c7fb7e54c
1 changed files with 4 additions and 3 deletions
|
@ -365,9 +365,10 @@ Dialog {
|
|||
}
|
||||
}
|
||||
|
||||
onEnabledChanged: {
|
||||
if (enabled) {
|
||||
username.forceActiveFocus();
|
||||
onOpacityChanged: {
|
||||
// Set focus once animation is completed so that focus is set at start-up when not logged in
|
||||
if (opacity == 1.0) {
|
||||
username.forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue