Merge pull request #6421 from nextcloud/bugfix/systray-error

Do not create systray notification if there are no errors.
This commit is contained in:
Matthieu Gallien 2024-02-08 16:40:10 +01:00 committed by GitHub
commit 9d78e97988
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -329,7 +329,12 @@ void ConnectionValidator::reportConnected() {
void ConnectionValidator::reportResult(Status status)
{
emit connectionResult(status, _errors);
showSystrayErrorMessage();
// notify user of errors
if (!_errors.isEmpty()) {
showSystrayErrorMessage();
}
deleteLater();
}