From 7aa64b385ef290fc58cc1414d133082d13921219 Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Wed, 20 Sep 2023 01:32:12 +0300 Subject: [PATCH] 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. --- rare/components/tabs/downloads/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rare/components/tabs/downloads/__init__.py b/rare/components/tabs/downloads/__init__.py index 85df8598..c9932f13 100644 --- a/rare/components/tabs/downloads/__init__.py +++ b/rare/components/tabs/downloads/__init__.py @@ -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) )