mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 04:08:54 +03:00
properly detect need to sign terms of service state
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
0190bf68f3
commit
79fa7cd04f
1 changed files with 2 additions and 2 deletions
|
@ -359,14 +359,14 @@ void AccountState::slotConnectionValidatorResult(ConnectionValidator::Status sta
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_lastConnectionValidatorStatus = status;
|
|
||||||
|
|
||||||
if ((_lastConnectionValidatorStatus == ConnectionValidator::NeedToSignTermsOfService && status == ConnectionValidator::Connected) ||
|
if ((_lastConnectionValidatorStatus == ConnectionValidator::NeedToSignTermsOfService && status == ConnectionValidator::Connected) ||
|
||||||
(status == ConnectionValidator::NeedToSignTermsOfService && _lastConnectionValidatorStatus != status)) {
|
(status == ConnectionValidator::NeedToSignTermsOfService && _lastConnectionValidatorStatus != status)) {
|
||||||
|
|
||||||
emit termsOfServiceChanged(_account);
|
emit termsOfServiceChanged(_account);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_lastConnectionValidatorStatus = status;
|
||||||
|
|
||||||
// Come online gradually from 503, captive portal(redirection) or maintenance mode
|
// Come online gradually from 503, captive portal(redirection) or maintenance mode
|
||||||
if (status == ConnectionValidator::Connected
|
if (status == ConnectionValidator::Connected
|
||||||
&& (_connectionStatus == ConnectionValidator::ServiceUnavailable
|
&& (_connectionStatus == ConnectionValidator::ServiceUnavailable
|
||||||
|
|
Loading…
Reference in a new issue