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 <michael@schuster.ms>2020-03-09 03:48:07 +0300
committerMichael Schuster <michael@schuster.ms>2020-03-09 04:34:55 +0300
commite833e86da689918ac61a1d77e01d5023eb1c8d0d (patch)
tree2e6a41099dff01e647638fabd02b18b53764b66a /src/gui/application.cpp
parentc812d896aa4835f945ed8de9b4ff5c79c73e1031 (diff)
Updater: Add CMake option BUILD_UPDATER to make the updater optional
- Default: BUILD_UPDATER = NO To ease builds for distro packages and contributors (regardless of the specified update URL) - Enable updater build for Drone CI and AppImage builds Signed-off-by: Michael Schuster <michael@schuster.ms>
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 4cfcab31d..7ea3bccfe 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"
@@ -254,12 +258,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);