Add PGO indicator to main window title and about dialogue

Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
Zephyron
2025-11-12 15:09:28 +10:00
parent 4491abcdce
commit a4e70c51d9
3 changed files with 12 additions and 2 deletions

View File

@@ -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()

View File

@@ -10,7 +10,10 @@
AboutDialog::AboutDialog(QWidget* parent)
: QDialog(parent), ui{std::make_unique<Ui::AboutDialog>()} {
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?)

View File

@@ -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));