From a4e70c51d9d40a98c381ae5c06f112270b8f0d4b Mon Sep 17 00:00:00 2001 From: Zephyron Date: Wed, 12 Nov 2025 15:09:28 +1000 Subject: [PATCH] Add PGO indicator to main window title and about dialogue Signed-off-by: Zephyron --- src/citron/CMakeLists.txt | 4 ++++ src/citron/about_dialog.cpp | 5 ++++- src/citron/main.cpp | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/citron/CMakeLists.txt b/src/citron/CMakeLists.txt index 8b76ae161..2fd8c8973 100644 --- a/src/citron/CMakeLists.txt +++ b/src/citron/CMakeLists.txt @@ -502,6 +502,10 @@ if (CITRON_USE_QT_WEB_ENGINE) target_compile_definitions(citron PRIVATE -DCITRON_USE_QT_WEB_ENGINE) endif () +if (CITRON_ENABLE_PGO_USE) + target_compile_definitions(citron PRIVATE -DCITRON_ENABLE_PGO_USE) +endif() + if(UNIX AND NOT APPLE) install(TARGETS citron) endif() diff --git a/src/citron/about_dialog.cpp b/src/citron/about_dialog.cpp index 18e65aeda..e37897d0b 100644 --- a/src/citron/about_dialog.cpp +++ b/src/citron/about_dialog.cpp @@ -10,7 +10,10 @@ AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent), ui{std::make_unique()} { - const auto citron_build_version = "citron | 0.11.0"; + std::string citron_build_version = "citron | 0.11.0"; +#ifdef CITRON_ENABLE_PGO_USE + citron_build_version += " | PGO"; +#endif ui->setupUi(this); // Try and request the icon from Qt theme (Linux?) diff --git a/src/citron/main.cpp b/src/citron/main.cpp index 18c8f550f..41afd58ba 100644 --- a/src/citron/main.cpp +++ b/src/citron/main.cpp @@ -5279,7 +5279,10 @@ void GMainWindow::MigrateConfigFiles() { void GMainWindow::UpdateWindowTitle(std::string_view title_name, std::string_view title_version, std::string_view gpu_vendor) { - const auto window_title = "citron | 0.11.0"; + std::string window_title = "citron | 0.11.0"; +#ifdef CITRON_ENABLE_PGO_USE + window_title += " | PGO"; +#endif if (title_name.empty()) { setWindowTitle(QString::fromStdString(window_title));