mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
Merge pull request #6421 from nextcloud/bugfix/systray-error
Do not create systray notification if there are no errors.
This commit is contained in:
commit
9d78e97988
1 changed files with 6 additions and 1 deletions
|
@ -329,7 +329,12 @@ void ConnectionValidator::reportConnected() {
|
||||||
void ConnectionValidator::reportResult(Status status)
|
void ConnectionValidator::reportResult(Status status)
|
||||||
{
|
{
|
||||||
emit connectionResult(status, _errors);
|
emit connectionResult(status, _errors);
|
||||||
showSystrayErrorMessage();
|
|
||||||
|
// notify user of errors
|
||||||
|
if (!_errors.isEmpty()) {
|
||||||
|
showSystrayErrorMessage();
|
||||||
|
}
|
||||||
|
|
||||||
deleteLater();
|
deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue