mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-19 02:33:32 +00:00
Add PGO indicator to main window title and about dialogue
Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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?)
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user