From eb6c40f92a1428e134b7b07961c39721ad73cd5d Mon Sep 17 00:00:00 2001 From: aiamnezia Date: Wed, 25 Dec 2024 18:17:00 +0400 Subject: [PATCH] Disable updates checking for Android and iOS --- client/amnezia_application.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/amnezia_application.cpp b/client/amnezia_application.cpp index 3c78717c..71d84066 100644 --- a/client/amnezia_application.cpp +++ b/client/amnezia_application.cpp @@ -463,9 +463,12 @@ void AmneziaApplication::initControllers() m_updateController.reset(new UpdateController(m_settings)); 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]() { QTimer::singleShot(1000, this, [this]() { m_pageController->showChangelogDrawer(); }); }); + + m_updateController->checkForUpdates(); +#endif }