mirror of
https://github.com/overte-org/overte.git
synced 2025-08-16 12:11:31 +02:00
Fix setting focus at start-up when not logged in
This commit is contained in:
parent
162395e7fe
commit
7819b5b5c3
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