From 533ef0b2604ba2b8185daa33227668172dc79e7c Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Wed, 7 Feb 2024 19:43:35 +0100 Subject: [PATCH] Do not create systray notification if there are no errors. Signed-off-by: Camila Ayres --- src/gui/connectionvalidator.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/connectionvalidator.cpp b/src/gui/connectionvalidator.cpp index f59d28b3383a..0be46b9f9160 100644 --- a/src/gui/connectionvalidator.cpp +++ b/src/gui/connectionvalidator.cpp @@ -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(); }