From b06790dfe58431276bc74e39b500c7478046292a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=A5IGA?= <164882787+Xphalnos@users.noreply.github.com> Date: Mon, 17 Feb 2025 11:38:17 +0100 Subject: [PATCH] Qt: Better title bar for SFO Viewer menu (#2462) --- src/qt_gui/gui_context_menus.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt_gui/gui_context_menus.h b/src/qt_gui/gui_context_menus.h index 262a1d733..deb35de8d 100644 --- a/src/qt_gui/gui_context_menus.h +++ b/src/qt_gui/gui_context_menus.h @@ -161,6 +161,7 @@ public: if (selected == &openSfoViewer) { PSF psf; + QString gameName = QString::fromStdString(m_games[itemID].name); std::filesystem::path game_folder_path = m_games[itemID].path; std::filesystem::path game_update_path = game_folder_path; game_update_path += "-UPDATE"; @@ -234,7 +235,7 @@ public: tableWidget->horizontalHeader()->setVisible(false); tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed); - tableWidget->setWindowTitle(tr("SFO Viewer")); + tableWidget->setWindowTitle(tr("SFO Viewer for ") + gameName); tableWidget->show(); } }