Housekeeping: Remove some print
remnants
This commit is contained in:
parent
d2af82ae35
commit
49fdd410ce
|
@ -3,10 +3,11 @@ import sys
|
||||||
from collections import ChainMap
|
from collections import ChainMap
|
||||||
from typing import Any, Union
|
from typing import Any, Union
|
||||||
|
|
||||||
from rare.utils.misc import icon
|
|
||||||
from PyQt5.QtCore import Qt, QModelIndex, QAbstractTableModel, pyqtSlot
|
from PyQt5.QtCore import Qt, QModelIndex, QAbstractTableModel, pyqtSlot
|
||||||
from PyQt5.QtGui import QFont
|
from PyQt5.QtGui import QFont
|
||||||
|
|
||||||
from rare.lgndr.core import LegendaryCore
|
from rare.lgndr.core import LegendaryCore
|
||||||
|
from rare.utils.misc import icon
|
||||||
|
|
||||||
|
|
||||||
class EnvVarsTableModel(QAbstractTableModel):
|
class EnvVarsTableModel(QAbstractTableModel):
|
||||||
|
@ -54,7 +55,6 @@ class EnvVarsTableModel(QAbstractTableModel):
|
||||||
try:
|
try:
|
||||||
return list(self.__data_map)[index]
|
return list(self.__data_map)[index]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e, index)
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
def __is_local(self, index: Union[QModelIndex, int]):
|
def __is_local(self, index: Union[QModelIndex, int]):
|
||||||
|
@ -220,7 +220,6 @@ class EnvVarsTableModel(QAbstractTableModel):
|
||||||
self.core.lgd.save_config()
|
self.core.lgd.save_config()
|
||||||
self.dataChanged.emit(self.index(index.row(), 0), index, [])
|
self.dataChanged.emit(self.index(index.row(), 0), index, [])
|
||||||
self.headerDataChanged.emit(Qt.Vertical, index.row(), index.row())
|
self.headerDataChanged.emit(Qt.Vertical, index.row(), index.row())
|
||||||
# pprint([item for item in self.__data_map.items()])
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def removeRow(self, row: int, parent: QModelIndex = None) -> bool:
|
def removeRow(self, row: int, parent: QModelIndex = None) -> bool:
|
||||||
|
@ -244,7 +243,6 @@ class EnvVarsTableModel(QAbstractTableModel):
|
||||||
del self.__data_map[self.__key(row)]
|
del self.__data_map[self.__key(row)]
|
||||||
self.core.lgd.save_config()
|
self.core.lgd.save_config()
|
||||||
self.endRemoveRows()
|
self.endRemoveRows()
|
||||||
# pprint([item for item in self.__data_map.items()])
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,6 @@ class ProtonSettings(QGroupBox):
|
||||||
proton = proton.replace('"', "")
|
proton = proton.replace('"', "")
|
||||||
self.proton_prefix.setEnabled(bool(proton))
|
self.proton_prefix.setEnabled(bool(proton))
|
||||||
if proton:
|
if proton:
|
||||||
print(proton)
|
|
||||||
self.ui.proton_combo.setCurrentText(
|
self.ui.proton_combo.setCurrentText(
|
||||||
f'"{proton.replace(" run", "")}" run'
|
f'"{proton.replace(" run", "")}" run'
|
||||||
)
|
)
|
||||||
|
|
|
@ -84,7 +84,7 @@ def get_game_params(core: LegendaryCore, igame: InstalledGame, args: InitArgs,
|
||||||
launch_args: LaunchArgs) -> LaunchArgs:
|
launch_args: LaunchArgs) -> LaunchArgs:
|
||||||
if not args.offline: # skip for update
|
if not args.offline: # skip for update
|
||||||
if not args.skip_update_check and not core.is_noupdate_game(igame.app_name):
|
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
|
# check updates
|
||||||
try:
|
try:
|
||||||
latest = core.get_asset(
|
latest = core.get_asset(
|
||||||
|
|
|
@ -489,8 +489,6 @@ class RareGame(RareGameSlim):
|
||||||
grant_date = datetime.fromisoformat(
|
grant_date = datetime.fromisoformat(
|
||||||
entitlement["grantDate"].replace("Z", "+00:00")
|
entitlement["grantDate"].replace("Z", "+00:00")
|
||||||
) if entitlement else None
|
) if entitlement else None
|
||||||
if force:
|
|
||||||
print(grant_date)
|
|
||||||
self.metadata.grant_date = grant_date
|
self.metadata.grant_date = grant_date
|
||||||
self.__save_metadata()
|
self.__save_metadata()
|
||||||
return self.metadata.grant_date
|
return self.metadata.grant_date
|
||||||
|
|
Loading…
Reference in a new issue