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/owncloudgui.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/owncloudgui.cpp')
-rw-r--r--src/gui/owncloudgui.cpp6
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)