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:
authorMichael Schuster <48932272+misch7@users.noreply.github.com>2020-03-10 17:53:47 +0300
committerGitHub <noreply@github.com>2020-03-10 17:53:47 +0300
commit78776f81e4e281010c3223715d9ce27ba7b4590f (patch)
tree57cdd2d78bb8392bcb5ba8d78c107ab973f8a7f8 /src/gui/application.cpp
parentf629e8320366974646d413cb21487b8de6bce011 (diff)
parente833e86da689918ac61a1d77e01d5023eb1c8d0d (diff)
Merge pull request #1847 from nextcloud/enh/updater
Updater: Enhance UI, make build optional
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 1110d83fe..7d7cf85b3 100644
--- a/src/gui/application.cpp
+++ b/src/gui/application.cpp
@@ -34,7 +34,11 @@
#include "sharedialog.h"
#include "accountmanager.h"
#include "creds/abstractcredentials.h"
+
+#if defined(BUILD_UPDATER)
#include "updater/ocupdater.h"
+#endif
+
#include "owncloudsetupwizard.h"
#include "version.h"
@@ -255,12 +259,14 @@ Application::Application(int &argc, char **argv)
connect(&_networkConfigurationManager, &QNetworkConfigurationManager::configurationChanged,
this, &Application::slotSystemOnlineConfigurationChanged);
+#if defined(BUILD_UPDATER)
// Update checks
UpdaterScheduler *updaterScheduler = new UpdaterScheduler(this);
connect(updaterScheduler, &UpdaterScheduler::updaterAnnouncement,
_gui.data(), &ownCloudGui::slotShowTrayMessage);
connect(updaterScheduler, &UpdaterScheduler::requestRestart,
_folderManager.data(), &FolderMan::slotScheduleAppRestart);
+#endif
// Cleanup at Quit.
connect(this, &QCoreApplication::aboutToQuit, this, &Application::slotCleanup);