1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +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 14e047ed62
commit 75c8e8d817
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
2 changed files with 4 additions and 3 deletions

View file

@ -1,8 +1,7 @@
import platform
from logging import getLogger
from PyQt5.QtCore import Qt, pyqtSignal, pyqtSlot
from PyQt5.QtWidgets import QDialog, QApplication
from PyQt5.QtWidgets import QDialog
from requests.exceptions import ConnectionError, HTTPError
from rare.components.dialogs.login import LoginDialog

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)
)