1
0
Fork 0
mirror of synced 2024-05-24 14:29:58 +12:00

Downloads: Move auto-update change to Rare's settings instead of the game's metadata

The setting doesn't have a switch in the GUI yet, but the settings
feels like a better place for it.
This commit is contained in:
loathingKernel 2023-09-20 01:32:12 +03:00
parent 3c01cfc0a8
commit 7aa64b385e

View file

@ -105,7 +105,9 @@ class DownloadsTab(QWidget):
def __add_update(self, update: Union[str, RareGame]):
if isinstance(update, str):
update = self.rcore.get_game(update)
if update.metadata.auto_update or QSettings().value("auto_update", False, bool):
if QSettings().value(
f"{update.app_name}/auto_update", False, bool
) or QSettings().value("auto_update", False, bool):
self.__get_install_options(
InstallOptionsModel(app_name=update.app_name, update=True, silent=True)
)