GODT-2019: when signing out and a single user is connected, we do not go back to the welcome screen.

This commit is contained in:
Xavier Michelon
2022-11-10 11:27:19 +01:00
committed by Romain LE JEUNE
parent 51d4a9c7ee
commit ec4c0fdd09

View File

@ -98,7 +98,7 @@ ApplicationWindow {
property bool _showSetup: false
currentIndex: {
// show welcome when there are no users or only one non-logged-in user is present
// show welcome when there are no users
if (Backend.users.count === 0) {
return 1
}
@ -112,7 +112,8 @@ ApplicationWindow {
}
if (Backend.users.count === 1 && u.loggedIn === false) {
return 1
showSignIn(u.username)
return 0
}
if (contentLayout._showSetup) {