Disable updates checking for Android and iOS
This commit is contained in:
parent
4588aa3713
commit
eb6c40f92a
1 changed files with 4 additions and 1 deletions
|
|
@ -463,9 +463,12 @@ void AmneziaApplication::initControllers()
|
||||||
|
|
||||||
m_updateController.reset(new UpdateController(m_settings));
|
m_updateController.reset(new UpdateController(m_settings));
|
||||||
m_engine->rootContext()->setContextProperty("UpdateController", m_updateController.get());
|
m_engine->rootContext()->setContextProperty("UpdateController", m_updateController.get());
|
||||||
m_updateController->checkForUpdates();
|
|
||||||
|
|
||||||
|
#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
|
||||||
connect(m_updateController.get(), &UpdateController::updateFound, this, [this]() {
|
connect(m_updateController.get(), &UpdateController::updateFound, this, [this]() {
|
||||||
QTimer::singleShot(1000, this, [this]() { m_pageController->showChangelogDrawer(); });
|
QTimer::singleShot(1000, this, [this]() { m_pageController->showChangelogDrawer(); });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
m_updateController->checkForUpdates();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue