From 0b0b80b70fd6a590d8747c1f5e54a67579c0b91c Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 22 Oct 2024 17:13:31 +0200 Subject: [PATCH] notify user once when terms of service need to be signed Signed-off-by: Matthieu Gallien --- src/gui/accountstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index 0e58b7c5ae842..4548ab5595c7c 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -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); }