diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-23 19:10:19 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-23 19:10:19 -0400 |
| commit | 088f27fe48cd8f218052090a97e8187eedf0c06e (patch) | |
| tree | 87e2695ff28c5fa4a7ef3610a0898f22776074e6 /src/selfupdater.cpp | |
| parent | 200b5283eb5a0eff5ed18e772930b99eea5e11ef (diff) | |
changed the layout of the general settings tab
added option to disable checking for updates
removed online check, just try it and see
Diffstat (limited to 'src/selfupdater.cpp')
| -rw-r--r-- | src/selfupdater.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp index 0ca39b19..8887927a 100644 --- a/src/selfupdater.cpp +++ b/src/selfupdater.cpp @@ -122,8 +122,18 @@ void SelfUpdater::setPluginContainer(PluginContainer *pluginContainer) m_Interface->setPluginContainer(pluginContainer);
}
-void SelfUpdater::testForUpdate()
+void SelfUpdater::testForUpdate(const Settings& settings)
{
+ if (settings.network().offlineMode()) {
+ log::debug("not checking for updates, in offline mode");
+ return;
+ }
+
+ if (!settings.checkForUpdates()) {
+ log::debug("not checking for updates, disabled");
+ return;
+ }
+
// TODO: if prereleases are disabled we could just request the latest release
// directly
try {
|
