mirror of
https://github.com/lutris/lutris.git
synced 2026-06-18 02:40:08 -04:00
Do not update 'ge-proton' when the wine runner is not installed; users who don't wine don't proton, and it's just a waste of bandwidth to download proton for them.
This commit is contained in:
@@ -448,6 +448,11 @@ class ProtonComponentUpdater(RuntimeExtractedComponentUpdater):
|
||||
super().__init__(remote_runtime_info)
|
||||
self.proton_dir = os.path.join(settings.RUNNER_DIR, "proton")
|
||||
|
||||
@property
|
||||
def should_update(self) -> bool:
|
||||
wine_dir = os.path.join(settings.RUNNER_DIR, "wine")
|
||||
return os.path.isdir(wine_dir) and super().should_update
|
||||
|
||||
@property
|
||||
def local_runtime_path(self) -> str:
|
||||
"""Return the local path for the runtime folder"""
|
||||
|
||||
Reference in New Issue
Block a user