1
0

GODT-1336: Fix showing window on startup

This commit is contained in:
Alexander Bilyak
2021-10-11 12:15:12 +00:00
committed by Jakub
parent ea821b1bd8
commit b259de238e
5 changed files with 33 additions and 14 deletions

View File

@ -224,13 +224,7 @@ Item {
Layout.preferredWidth: 320
Layout.fillWidth: true
username: {
if (root.backend.users.count !== 1) return ""
var user = root.backend.users.get(0)
if (user) return ""
if (user.loggedIn) return ""
return user.username
}
username: root.backend.users.count === 1 && root.backend.users.get(0) && root.backend.users.get(0).loggedIn === false ? root.backend.users.get(0).username : ""
backend: root.backend
}