Do not create systray notification if there are no errors.

Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
Camila Ayres 2024-02-07 19:43:35 +01:00 committed by Matthieu Gallien
parent 182d5bc8e6
commit 533ef0b260

View file

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