Skip to content

Commit

Permalink
Do not create systray notification if there are no errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Feb 7, 2024
1 parent 1b305e4 commit dca9c93
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gui/connectionvalidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit dca9c93

Please sign in to comment.