From 775b3a4c40089b3d846a568bfbcb19510753f67f Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Mon, 12 Aug 2024 14:41:19 +0200 Subject: [PATCH] Remove systray call to display network errors. Signed-off-by: Camila Ayres --- src/gui/connectionvalidator.cpp | 11 ++--------- src/gui/connectionvalidator.h | 2 -- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/gui/connectionvalidator.cpp b/src/gui/connectionvalidator.cpp index c87e7477f7ad7..ff3c85836349d 100644 --- a/src/gui/connectionvalidator.cpp +++ b/src/gui/connectionvalidator.cpp @@ -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("
"), - QSystemTrayIcon::Warning); -} - } // namespace OCC diff --git a/src/gui/connectionvalidator.h b/src/gui/connectionvalidator.h index 4b7193b0c8004..ecff3b98b4544 100644 --- a/src/gui/connectionvalidator.h +++ b/src/gui/connectionvalidator.h @@ -149,8 +149,6 @@ protected slots: AccountStatePtr _accountState; AccountPtr _account; bool _isCheckingServerAndAuth = false; - - void showSystrayErrorMessage(); }; }