mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +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;
|
||||
}
|
||||
|
||||
_lastConnectionValidatorStatus = status;
|
||||
|
||||
if ((_lastConnectionValidatorStatus == ConnectionValidator::NeedToSignTermsOfService && status == ConnectionValidator::Connected) ||
|
||||
(status == ConnectionValidator::NeedToSignTermsOfService && _lastConnectionValidatorStatus != status)) {
|
||||
|
||||
emit termsOfServiceChanged(_account);
|
||||
}
|
||||
|
||||
_lastConnectionValidatorStatus = status;
|
||||
|
||||
// Come online gradually from 503, captive portal(redirection) or maintenance mode
|
||||
if (status == ConnectionValidator::Connected
|
||||
&& (_connectionStatus == ConnectionValidator::ServiceUnavailable
|
||||
|
|
Loading…
Reference in a new issue