mirror of
https://github.com/lutris/lutris
synced 2024-10-14 11:42:36 +00:00
Disable runtime updates if globally disabled by env var
This commit is contained in:
parent
56a4cc0440
commit
3cf714e3a2
|
@ -36,6 +36,10 @@ class RuntimeUpdater:
|
|||
return time.gmtime(os.path.getctime(path))
|
||||
|
||||
def update(self, status_updater=None):
|
||||
if is_disabled():
|
||||
logger.debug("Runtime disabled, not updating it.")
|
||||
return []
|
||||
|
||||
if self.is_updating():
|
||||
logger.debug("Runtime already updating")
|
||||
return []
|
||||
|
|
Loading…
Reference in a new issue