diff --git a/NUSGet.py b/NUSGet.py index 8309203..8a4f81e 100644 --- a/NUSGet.py +++ b/NUSGet.py @@ -96,7 +96,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): self.ui.auto_update_checkbox.toggled.connect( lambda: update_setting(config_data, "auto_update", self.ui.auto_update_checkbox.isChecked())) # Load custom output directory if one is saved and it is valid. Only enable the checkbox to actually use the - # custom dir if use_out_path is set to true. + # custom dir if "use_out_path" is set to true. try: out_dir = pathlib.Path(config_data["out_path"]) if out_dir.exists() and out_dir.is_dir(): @@ -111,17 +111,11 @@ class MainWindow(QMainWindow, Ui_MainWindow): self.ui.tid_entry.textChanged.connect(self.tid_updated) self.ui.custom_out_dir_entry.textChanged.connect(self.custom_output_dir_changed) # Basic intro text set to automatically show when the app loads. This may be changed in the future. - libwiipy_version = "v" + version("libWiiPy") - libtwlpy_version = "v" + version("libTWLPy") - self.log_text = (app.translate("MainWindow", "NUSGet v{nusget_version}\nDeveloped by NinjaCheetah\nPowered by libWiiPy " - "{libwiipy_version}\nDSi support provided by libTWLPy {libtwlpy_version}\n\n" - "Select a title from the list on the left, or enter a Title ID to begin.\n\n" - "Titles marked with a checkmark are free and have a ticket available, and can" - " be decrypted and/or packed into a WAD or TAD. Titles with an X do not have " - "a ticket, and only their encrypted contents can be saved.\n\nBy default, titles will be " - "downloaded to a folder named \"NUSGet Downloads\" inside your downloads folder.") - .format(nusget_version=nusget_version, libwiipy_version=libwiipy_version, - libtwlpy_version=libtwlpy_version)) + self.log_text = app.translate("MainWindow", "Select a title from the list on the left, or enter a " + "Title ID to begin.\n\nTitles marked with a checkmark are free and have a ticket " + "available, and can be decrypted and/or packed into a WAD or TAD. Titles with an X do not" + " have a ticket, and only their encrypted contents can be saved.\n\nBy default, titles " + "will be downloaded to a folder named \"NUSGet Downloads\" inside your downloads folder.") self.ui.log_text_browser.setText(self.log_text) # Add console entries to dropdown and attach on change signal. self.ui.console_select_dropdown.addItem("Wii") @@ -570,8 +564,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): save_config(config_data) def about_nusget(self): - version_str = app.translate("MainWindow", "Version {nusget_version}".format(nusget_version=nusget_version)) - about_box = AboutNUSGet(version_str) + about_box = AboutNUSGet([nusget_version, version("libWiiPy"), version("libTWLPy")]) about_box.exec() diff --git a/qt/py/ui_AboutDialog.py b/qt/py/ui_AboutDialog.py index adbfc9e..ac4558a 100644 --- a/qt/py/ui_AboutDialog.py +++ b/qt/py/ui_AboutDialog.py @@ -11,7 +11,7 @@ from PySide6.QtWidgets import QDialog, QLabel, QVBoxLayout, QPushButton from PySide6.QtGui import QIcon class AboutNUSGet(QDialog): - def __init__(self, version_str): + def __init__(self, versions): super().__init__() self.setWindowTitle(self.tr("About NUSGet")) self.setFixedWidth(450) @@ -83,11 +83,17 @@ class AboutNUSGet(QDialog): title_label.setProperty("class", "title") title_label.setAlignment(Qt.AlignmentFlag.AlignCenter) - # Version - version_label = QLabel(self.tr("{version_str}".format(version_str=version_str))) + # NUSGet Version + version_label = QLabel(self.tr("Version {nusget_version}".format(nusget_version=versions[0]))) version_label.setProperty("class", "version") version_label.setAlignment(Qt.AlignmentFlag.AlignCenter) + # Library Versions + libraries_label = QLabel(self.tr("Using libWiiPy {libwiipy_version} & libTWLPy {libtwlpy_version}" + .format(libwiipy_version=versions[1], libtwlpy_version=versions[2]))) + libraries_label.setProperty("class", "version") + libraries_label.setAlignment(Qt.AlignmentFlag.AlignCenter) + # Copyright copyright_label = QLabel(self.tr("© 2024-2025 NinjaCheetah & Contributors")) copyright_label.setProperty("class", "copyright") @@ -97,6 +103,7 @@ class AboutNUSGet(QDialog): self.layout.addWidget(logo_label) self.layout.addWidget(title_label) self.layout.addWidget(version_label) + self.layout.addWidget(libraries_label) self.layout.addWidget(copyright_label) self.layout.addSpacing(15) diff --git a/qt/py/ui_MainMenu.py b/qt/py/ui_MainMenu.py index 247bf69..d984b3e 100644 --- a/qt/py/ui_MainMenu.py +++ b/qt/py/ui_MainMenu.py @@ -28,9 +28,9 @@ class Ui_MainWindow(object): def setupUi(self, MainWindow): if not MainWindow.objectName(): MainWindow.setObjectName(u"MainWindow") - MainWindow.resize(1010, 625) - MainWindow.setMinimumSize(QSize(1010, 625)) - MainWindow.setMaximumSize(QSize(1010, 625)) + MainWindow.resize(1010, 675) + MainWindow.setMinimumSize(QSize(1010, 675)) + MainWindow.setMaximumSize(QSize(1010, 675)) self.actionAbout = QAction(MainWindow) self.actionAbout.setObjectName(u"actionAbout") icon = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.HelpAbout)) @@ -310,7 +310,7 @@ class Ui_MainWindow(object): MainWindow.setCentralWidget(self.centralwidget) self.menubar = QMenuBar(MainWindow) self.menubar.setObjectName(u"menubar") - self.menubar.setGeometry(QRect(0, 0, 1010, 21)) + self.menubar.setGeometry(QRect(0, 0, 1010, 30)) self.menuHelp = QMenu(self.menubar) self.menuHelp.setObjectName(u"menuHelp") MainWindow.setMenuBar(self.menubar) @@ -359,7 +359,7 @@ class Ui_MainWindow(object): "hr { height: 1px; border-width: 0; }\n" "li.unchecked::marker { content: \"\\2610\"; }\n" "li.checked::marker { content: \"\\2612\"; }\n" -"
\n" +"\n" "