notify user once when terms of service need to be signed

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2024-10-22 17:13:31 +02:00
parent 51352353e4
commit 0b0b80b70f

View file

@ -362,7 +362,7 @@ void AccountState::slotConnectionValidatorResult(ConnectionValidator::Status sta
_lastConnectionValidatorStatus = status;
if ((_lastConnectionValidatorStatus == ConnectionValidator::NeedToSignTermsOfService && status == ConnectionValidator::Connected) ||
status == ConnectionValidator::NeedToSignTermsOfService) {
(status == ConnectionValidator::NeedToSignTermsOfService && _lastConnectionValidatorStatus != status)) {
emit termsOfServiceChanged(_account);
}