mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-16 15:16:44 +00:00
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
|
property bool _showSetup: false
|
||||||
currentIndex: {
|
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) {
|
if (Backend.users.count === 0) {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
@ -112,7 +112,8 @@ ApplicationWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Backend.users.count === 1 && u.loggedIn === false) {
|
if (Backend.users.count === 1 && u.loggedIn === false) {
|
||||||
return 1
|
showSignIn(u.username)
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if (contentLayout._showSetup) {
|
if (contentLayout._showSetup) {
|
||||||
|
|||||||
Reference in New Issue
Block a user