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:
parent
3c01cfc0a8
commit
7aa64b385e
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue