mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
Do not create systray notification if there are no errors.
Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
parent
182d5bc8e6
commit
533ef0b260
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue