From: Matthieu Gallien Date: Tue, 22 Oct 2024 20:39:38 +0000 (+0200) Subject: properly detect need to sign terms of service state X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~58^2^2~94^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=79fa7cd04f8ee2674eac3edd5f14302e8ee6fa6b;p=nextcloud-desktop.git properly detect need to sign terms of service state Signed-off-by: Matthieu Gallien --- diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index 4548ab559..1324fa1dd 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -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