From 62b1907dd6307bd9070c6cd26588a9ae32491f9d Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 22 Oct 2024 22:39:38 +0200 Subject: [PATCH] properly detect need to sign terms of service state Signed-off-by: Matthieu Gallien --- src/gui/accountstate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index 4548ab5595c7..1324fa1dd2c8 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