diff options
Diffstat (limited to 'launcher/Application.cpp')
| -rw-r--r-- | launcher/Application.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 892fb2c14c..874b6ae996 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -937,16 +937,15 @@ void Application::initSubsystems() } // initialize the updater - if(BuildConfig.UPDATER_ENABLED) - { - auto platform = getIdealPlatform(BuildConfig.BUILD_PLATFORM); - auto channelUrl = BuildConfig.UPDATER_BASE + platform + "/channels.json"; - qDebug() << "Initializing updater with platform: " << platform << " -- " << channelUrl; - m_updateChecker.reset(new UpdateChecker( - m_network, channelUrl, - BuildConfig.VERSION_CHANNEL, - BuildConfig.VERSION_BUILD)); - qDebug() << "<> Updater started."; + if(BuildConfig.UPDATER_ENABLED && UpdateChecker::isUpdaterSupported()) + { + m_updateChecker.reset(new UpdateChecker(m_network)); + qDebug() << "<> Updater initialized (feed:" << BuildConfig.UPDATER_FEED_URL + << "| github:" << BuildConfig.UPDATER_GITHUB_API_URL << ")."; + } + else if(BuildConfig.UPDATER_ENABLED) + { + qDebug() << "<> Updater disabled on this platform/mode."; } // Instance icons |
