Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2019-03-06 12:55:45 +0300
committerKevin Ottens <kevin.ottens@nextcloud.com>2020-12-15 12:58:43 +0300
commit2f7cdb81cf2ac5db78190ed0a2f72952ea526d74 (patch)
tree12c4d65cc4e7f0ba5bc96dc0bea15b76ed9e2cd1 /src/gui/application.cpp
parent4bd062f5befc15ea7cdea79ab871a11c6866698d (diff)
Tray: Try to establish tray after 10s if failed initially #6518
When owncloud is started during desktop startup the tray may not yet be running when the client starts. This will make the client attempt to create a tray icon again after 10 seconds if there's no tray during initial startup.
Diffstat (limited to 'src/gui/application.cpp')
-rw-r--r--src/gui/application.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/application.cpp b/src/gui/application.cpp
index fed5c6388..63edc4b00 100644
--- a/src/gui/application.cpp
+++ b/src/gui/application.cpp
@@ -804,6 +804,12 @@ void Application::openVirtualFile(const QString &filename)
});
}
+void Application::tryTrayAgain()
+{
+ qCInfo(lcApplication) << "Trying tray icon, tray available:" << QSystemTrayIcon::isSystemTrayAvailable();
+ _gui->hideAndShowTray();
+}
+
bool Application::event(QEvent *event)
{
#ifdef Q_OS_MAC