Fix appname error in game_info.py and error in postinstall
This commit is contained in:
parent
ef5e814f64
commit
87ea29d005
2 changed files with 6 additions and 6 deletions
|
@ -201,7 +201,7 @@ class DownloadThread(QThread):
|
||||||
self.status.emit("finish")
|
self.status.emit("finish")
|
||||||
|
|
||||||
def _handle_postinstall(self, postinstall, igame):
|
def _handle_postinstall(self, postinstall, igame):
|
||||||
logger.info(f"Postinstall info: {postinstall.__dict__}")
|
logger.info(f"Postinstall info: {postinstall}")
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
if self.queue_item.options.install_preqs:
|
if self.queue_item.options.install_preqs:
|
||||||
self.core.prereq_installed(igame.app_name)
|
self.core.prereq_installed(igame.app_name)
|
||||||
|
|
|
@ -165,7 +165,7 @@ class GameInfo(QWidget, Ui_GameInfo):
|
||||||
igame = self.core.get_installed_game(app_name)
|
igame = self.core.get_installed_game(app_name)
|
||||||
if igame.needs_verification:
|
if igame.needs_verification:
|
||||||
igame.needs_verification = False
|
igame.needs_verification = False
|
||||||
self.core.lgd.set_installed_game(self.igame.app_name, igame)
|
self.core.lgd.set_installed_game(igame.app_name, igame)
|
||||||
self.verification_finished.emit(igame)
|
self.verification_finished.emit(igame)
|
||||||
elif failed == missing == -1:
|
elif failed == missing == -1:
|
||||||
QMessageBox.warning(self, "Warning", self.tr("Something went wrong"))
|
QMessageBox.warning(self, "Warning", self.tr("Something went wrong"))
|
||||||
|
@ -182,7 +182,7 @@ class GameInfo(QWidget, Ui_GameInfo):
|
||||||
)
|
)
|
||||||
if ans == QMessageBox.Yes:
|
if ans == QMessageBox.Yes:
|
||||||
self.signals.install_game.emit(
|
self.signals.install_game.emit(
|
||||||
InstallOptionsModel(app_name=self.game.app_name, repair=True, update=True)
|
InstallOptionsModel(app_name=app_name, repair=True, update=True)
|
||||||
)
|
)
|
||||||
self.verify_widget.setCurrentIndex(0)
|
self.verify_widget.setCurrentIndex(0)
|
||||||
self.verify_threads.pop(app_name)
|
self.verify_threads.pop(app_name)
|
||||||
|
@ -504,14 +504,14 @@ class CopyGameInstallation(QRunnable):
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
install_path: Path,
|
install_path: str,
|
||||||
dest_path: Path,
|
dest_path: Path,
|
||||||
is_existing_dir: bool,
|
is_existing_dir: bool,
|
||||||
igame: InstalledGame,
|
igame: InstalledGame,
|
||||||
):
|
):
|
||||||
super(CopyGameInstallation, self).__init__()
|
super(CopyGameInstallation, self).__init__()
|
||||||
self.signals = CopyGameInstallation.Signals()
|
self.signals = self.Signals()
|
||||||
self.install_path = str(install_path)
|
self.install_path = install_path
|
||||||
self.dest_path = dest_path
|
self.dest_path = dest_path
|
||||||
self.source_size = 0
|
self.source_size = 0
|
||||||
self.dest_size = 0
|
self.dest_size = 0
|
||||||
|
|
Loading…
Reference in a new issue