1
0
Fork 0
mirror of synced 2024-06-17 10:04:43 +12:00

Housekeeping: Remove some print remnants

This commit is contained in:
loathingKernel 2023-08-21 00:58:31 +03:00
parent d2af82ae35
commit 49fdd410ce
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
4 changed files with 3 additions and 8 deletions

View file

@ -3,10 +3,11 @@ import sys
from collections import ChainMap
from typing import Any, Union
from rare.utils.misc import icon
from PyQt5.QtCore import Qt, QModelIndex, QAbstractTableModel, pyqtSlot
from PyQt5.QtGui import QFont
from rare.lgndr.core import LegendaryCore
from rare.utils.misc import icon
class EnvVarsTableModel(QAbstractTableModel):
@ -54,7 +55,6 @@ class EnvVarsTableModel(QAbstractTableModel):
try:
return list(self.__data_map)[index]
except Exception as e:
print(e, index)
return ""
def __is_local(self, index: Union[QModelIndex, int]):
@ -220,7 +220,6 @@ class EnvVarsTableModel(QAbstractTableModel):
self.core.lgd.save_config()
self.dataChanged.emit(self.index(index.row(), 0), index, [])
self.headerDataChanged.emit(Qt.Vertical, index.row(), index.row())
# pprint([item for item in self.__data_map.items()])
return True
def removeRow(self, row: int, parent: QModelIndex = None) -> bool:
@ -244,7 +243,6 @@ class EnvVarsTableModel(QAbstractTableModel):
del self.__data_map[self.__key(row)]
self.core.lgd.save_config()
self.endRemoveRows()
# pprint([item for item in self.__data_map.items()])
return True

View file

@ -124,7 +124,6 @@ class ProtonSettings(QGroupBox):
proton = proton.replace('"', "")
self.proton_prefix.setEnabled(bool(proton))
if proton:
print(proton)
self.ui.proton_combo.setCurrentText(
f'"{proton.replace(" run", "")}" run'
)

View file

@ -84,7 +84,7 @@ def get_game_params(core: LegendaryCore, igame: InstalledGame, args: InitArgs,
launch_args: LaunchArgs) -> LaunchArgs:
if not args.offline: # skip for update
if not args.skip_update_check and not core.is_noupdate_game(igame.app_name):
print("Checking for updates...")
# print("Checking for updates...")
# check updates
try:
latest = core.get_asset(

View file

@ -489,8 +489,6 @@ class RareGame(RareGameSlim):
grant_date = datetime.fromisoformat(
entitlement["grantDate"].replace("Z", "+00:00")
) if entitlement else None
if force:
print(grant_date)
self.metadata.grant_date = grant_date
self.__save_metadata()
return self.metadata.grant_date