Disable update checker on Flatpak (#3051)

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
ilyazzz
2021-07-24 14:30:21 +03:00
committed by GitHub
parent 706605c99e
commit b8bd0a587d
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -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)
{