Skip to content

Commit

Permalink
fix: lastUser is empty when user logins in firstly
Browse files Browse the repository at this point in the history
Signed-off-by: ComixHe <[email protected]>
  • Loading branch information
ComixHe authored and justforlxz committed Dec 18, 2023
1 parent fb53bd8 commit 91d3b1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/greeter/Greeter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ Item {
Connections {
target: GreeterModel.proxy
function onLoginSucceeded(userName) {
if(GreeterModel.userModel.lastUser != userName){
var authUser = GreeterModel.userModel.lastUser;
if(authUser.length != 0 && authUser != userName) {
return
}

Expand Down

0 comments on commit 91d3b1c

Please sign in to comment.