forked from Silverfish/proton-bridge
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:
committed by
Romain LE JEUNE
parent
51d4a9c7ee
commit
ec4c0fdd09
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user