diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-06-22 18:14:38 +0300 |
---|---|---|
committer | Fabian Müller <80399010+fmoc@users.noreply.github.com> | 2022-06-29 14:42:14 +0300 |
commit | 63ae3af11673122be4178a9e4a15051b21dd2158 (patch) | |
tree | 2f4056cce68db69fdbf06ba3df4592812e3b0c35 /src/gui/application.cpp | |
parent | 32a2cacf41375cc9f010c5ff904a8f752e6d9a7e (diff) |
CMake: Implement WITH_AUTO_UPDATER
Fixes: #9082
Diffstat (limited to 'src/gui/application.cpp')
-rw-r--r-- | src/gui/application.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/application.cpp b/src/gui/application.cpp index f9cd5c07f..f2f3eac8f 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -40,7 +40,10 @@ #include "socketapi/socketapi.h" #include "theme.h" #include "translations.h" + +#ifdef WITH_AUTO_UPDATER #include "updater/ocupdater.h" +#endif #include "config.h" @@ -370,6 +373,7 @@ Application::Application(int &argc, char **argv) connect(&_networkConfigurationManager, &QNetworkConfigurationManager::configurationChanged, this, &Application::slotSystemOnlineConfigurationChanged); +#ifdef WITH_AUTO_UPDATER // Update checks UpdaterScheduler *updaterScheduler = new UpdaterScheduler(this); connect(updaterScheduler, &UpdaterScheduler::updaterAnnouncement, @@ -378,6 +382,7 @@ Application::Application(int &argc, char **argv) }); connect(updaterScheduler, &UpdaterScheduler::requestRestart, _folderManager.data(), &FolderMan::slotScheduleAppRestart); +#endif // Cleanup at Quit. connect(this, &QCoreApplication::aboutToQuit, this, &Application::slotCleanup); |