Allow user to override update checking on Linux

The original intention of leaving the update checkbox in the hamburger
menu was to let non-supported Linux distros (e.g. compiled from source)
to check for updates. However, on Linux it ended up being disabled
forcefully by default on startup.

This takes into account an overriden update checkbox.

Fixes #596
This commit is contained in:
deeplow 2023-10-13 17:01:53 +01:00
parent 18898992f1
commit 186ddd6b1e
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -164,6 +164,7 @@ class UpdaterThread(QtCore.QThread):
# TODO: Disable updates for Homebrew installations. # TODO: Disable updates for Homebrew installations.
if platform.system() == "Linux" and not getattr(sys, "dangerzone_dev", False): if platform.system() == "Linux" and not getattr(sys, "dangerzone_dev", False):
log.debug("Running on Linux, disabling updates") log.debug("Running on Linux, disabling updates")
if not self.check: # if not overidden by user
self.check = False self.check = False
return False return False