Remove systray call to display network errors.
authorCamila Ayres <hello@camilasan.com>
Mon, 12 Aug 2024 12:41:19 +0000 (14:41 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Mon, 12 Aug 2024 15:51:19 +0000 (17:51 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/connectionvalidator.cpp
src/gui/connectionvalidator.h

index c87e7477f7ad708cadf6438b84125c2169387e88..ff3c85836349d956d64344a9f8c3093a0f1c6f1c 100644 (file)
@@ -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
index 4b7193b0c800463d2aace2ad856bc85c30320cad..ecff3b98b4544c2b7d4a676f5d0cea9506197568 100644 (file)
@@ -149,8 +149,6 @@ private:
     AccountStatePtr _accountState;
     AccountPtr _account;
     bool _isCheckingServerAndAuth = false;
-
-    void showSystrayErrorMessage();
 };
 }