Skip to content

Commit

Permalink
Remove systray call to display network errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Aug 12, 2024
1 parent ab06ecb commit 775b3a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 2 additions & 9 deletions src/gui/connectionvalidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,19 +329,12 @@ void ConnectionValidator::reportResult(Status status)
{
emit connectionResult(status, _errors);

// notify user of errors
// TODO: notify user of errors
if (!_errors.isEmpty() && _previousErrors != _errors) {
showSystrayErrorMessage();
qCWarning(lcConnectionValidator) << "Connection issues:" << _errors;
}

deleteLater();
}

void ConnectionValidator::showSystrayErrorMessage()
{
Systray::instance()->showMessage(tr("Connection issue"),
_errors.join("<br>"),
QSystemTrayIcon::Warning);
}

} // namespace OCC
2 changes: 0 additions & 2 deletions src/gui/connectionvalidator.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ protected slots:
AccountStatePtr _accountState;
AccountPtr _account;
bool _isCheckingServerAndAuth = false;

void showSystrayErrorMessage();
};
}

Expand Down

0 comments on commit 775b3a4

Please sign in to comment.