mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-30 10:42:37 +02:00
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:
parent
18898992f1
commit
186ddd6b1e
1 changed files with 3 additions and 2 deletions
|
@ -164,6 +164,7 @@ class UpdaterThread(QtCore.QThread):
|
|||
# TODO: Disable updates for Homebrew installations.
|
||||
if platform.system() == "Linux" and not getattr(sys, "dangerzone_dev", False):
|
||||
log.debug("Running on Linux, disabling updates")
|
||||
if not self.check: # if not overidden by user
|
||||
self.check = False
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue