From b8bd0a587d034b97a61515c2a2e25ed7a1a014e3 Mon Sep 17 00:00:00 2001 From: ilyazzz Date: Sat, 24 Jul 2021 14:30:21 +0300 Subject: [PATCH] Disable update checker on Flatpak (#3051) Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com> Co-authored-by: pajlada --- CHANGELOG.md | 1 + src/singletons/Updates.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c23d71dd..e57bba73a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Bugfix: Fixed "smiley" emotes being unable to be "Tabbed" with autocompletion, introduced in v2.3.3. (#3010) - Bugfix: Fixed comma appended to username completion when not at the beginning of the message. (#3060) - Dev: Ubuntu packages are now available (#2936) +- Dev: Disabled update checker on Flatpak. (#3051) ## 2.3.3 diff --git a/src/singletons/Updates.cpp b/src/singletons/Updates.cpp index 75e9275e1..5751b59cc 100644 --- a/src/singletons/Updates.cpp +++ b/src/singletons/Updates.cpp @@ -240,6 +240,12 @@ void Updates::checkForUpdates() return; } + // Disable updates on Flatpak + if (QFileInfo::exists("/.flatpak-info")) + { + return; + } + // Disable updates if on nightly if (Modes::instance().isNightly) {