diff options
author | Christian Kamm <mail@ckamm.de> | 2019-03-06 12:55:45 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-15 12:58:43 +0300 |
commit | 2f7cdb81cf2ac5db78190ed0a2f72952ea526d74 (patch) | |
tree | 12c4d65cc4e7f0ba5bc96dc0bea15b76ed9e2cd1 /src/gui/application.cpp | |
parent | 4bd062f5befc15ea7cdea79ab871a11c6866698d (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.cpp | 6 |
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 |