mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix active user check
This commit is contained in:
parent
67c69fd861
commit
89df4aa150
1 changed files with 3 additions and 3 deletions
|
@ -251,9 +251,9 @@ MainWindow::hasActiveUser()
|
||||||
if (userSettings_->profile() != QLatin1String(""))
|
if (userSettings_->profile() != QLatin1String(""))
|
||||||
prefix = "profile/" + userSettings_->profile() + "/";
|
prefix = "profile/" + userSettings_->profile() + "/";
|
||||||
|
|
||||||
return settings->contains(prefix + "auth/access_token") &&
|
return !settings->value(prefix + "auth/access_token").toString().isEmpty() &&
|
||||||
settings->contains(prefix + "auth/home_server") &&
|
!settings->value(prefix + "auth/home_server").toString().isEmpty() &&
|
||||||
settings->contains(prefix + "auth/user_id");
|
!settings->value(prefix + "auth/user_id").toString().isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
Loading…
Reference in a new issue