From f941f2a7f78da925cf363856b7cbdcb90cc15482 Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Thu, 1 Aug 2024 18:30:58 +0100 Subject: [PATCH] ctmod: Update download_file error dialog title --- pupgui2/resources/ctmods/ctmod_luxtorpeda.py | 2 +- pupgui2/resources/ctmods/ctmod_z0dxvk.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pupgui2/resources/ctmods/ctmod_luxtorpeda.py b/pupgui2/resources/ctmods/ctmod_luxtorpeda.py index 4186d3b6..ed486963 100644 --- a/pupgui2/resources/ctmods/ctmod_luxtorpeda.py +++ b/pupgui2/resources/ctmods/ctmod_luxtorpeda.py @@ -74,7 +74,7 @@ def __download(self, url: str, destination: str, known_size: int = 0): except Exception as e: print(f"Failed to download tool {CT_NAME} - Reason: {e}") - self.message_box_message.emit("Error!", "Failed to download tool {CT_NAME}!\n\nReason: {EXCEPTION}".format(CT_NAME=CT_NAME, EXCEPTION=e), QMessageBox.Icon.Warning) + self.message_box_message.emit("Download Error!", "Failed to download tool '{CT_NAME}'!\n\nReason: {EXCEPTION}".format(CT_NAME=CT_NAME, EXCEPTION=e), QMessageBox.Icon.Warning) def __fetch_github_data(self, tag): diff --git a/pupgui2/resources/ctmods/ctmod_z0dxvk.py b/pupgui2/resources/ctmods/ctmod_z0dxvk.py index 090d9559..aacb367d 100644 --- a/pupgui2/resources/ctmods/ctmod_z0dxvk.py +++ b/pupgui2/resources/ctmods/ctmod_z0dxvk.py @@ -70,7 +70,7 @@ def __download(self, url: str, destination: str, known_size: int = 0): except Exception as e: print(f"Failed to download tool {CT_NAME} - Reason: {e}") - self.message_box_message.emit("Error!", "Failed to download tool {CT_NAME}!\n\nReason: {EXCEPTION}".format(CT_NAME=CT_NAME, EXCEPTION=e), QMessageBox.Icon.Warning) + self.message_box_message.emit("Download Error!", "Failed to download tool '{CT_NAME}'!\n\nReason: {EXCEPTION}".format(CT_NAME=CT_NAME, EXCEPTION=e), QMessageBox.Icon.Warning) def __fetch_data(self, tag: str = '') -> dict: """