mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Fix maintenance mode detection #5755
The server sends "maintenance": "true" which isn't a json boolean...
This commit is contained in:
parent
3d93527a8e
commit
cc5fe558ba
1 changed files with 3 additions and 1 deletions
|
@ -139,7 +139,9 @@ void ConnectionValidator::slotStatusFound(const QUrl &url, const QJsonObject &in
|
|||
return;
|
||||
}
|
||||
|
||||
if (info["maintenance"].toBool()) {
|
||||
// Check for maintenance mode: Servers send "true", so go through QVariant
|
||||
// to parse it correctly.
|
||||
if (info["maintenance"].toVariant().toBool()) {
|
||||
reportResult(MaintenanceMode);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue