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/owncloudgui.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/owncloudgui.cpp')
-rw-r--r-- | src/gui/owncloudgui.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp index cb86c7074..d650b96e4 100644 --- a/src/gui/owncloudgui.cpp +++ b/src/gui/owncloudgui.cpp @@ -367,6 +367,12 @@ void ownCloudGui::slotComputeOverallSyncStatus() } } +void ownCloudGui::hideAndShowTray() +{ + _tray->hide(); + _tray->show(); +} + void ownCloudGui::slotShowTrayMessage(const QString &title, const QString &msg) { if (_tray) |