Qt: Drop branch from title bar

Doesn't show up if a commit is checked out, and arguably not very useful
anyway.
This commit is contained in:
Stenzek 2023-10-02 13:05:43 +10:00
parent dc74075ba2
commit e33082778e
3 changed files with 4 additions and 3 deletions

View File

@ -515,7 +515,7 @@ void NoGUIHost::SavePlatformWindowGeometry(s32 x, s32 y, s32 width, s32 height)
std::string NoGUIHost::GetAppNameAndVersion()
{
return fmt::format("DuckStation {} ({})", g_scm_tag_str, g_scm_branch_str);
return fmt::format("DuckStation {}", g_scm_tag_str);
}
std::string NoGUIHost::GetAppConfigSuffix()

View File

@ -15,7 +15,8 @@ AboutDialog::AboutDialog(QWidget* parent /* = nullptr */) : QDialog(parent)
setFixedSize(geometry().width(), geometry().height());
m_ui.scmversion->setTextInteractionFlags(Qt::TextSelectableByMouse);
m_ui.scmversion->setText(tr("%1 (%2)").arg(QString(g_scm_tag_str)).arg(QString(g_scm_branch_str)));
m_ui.scmversion->setText(
tr("%1 (%2)").arg(QLatin1StringView(g_scm_tag_str)).arg(QLatin1StringView(g_scm_branch_str)));
m_ui.description->setTextInteractionFlags(Qt::TextBrowserInteraction);
m_ui.description->setOpenExternalLinks(true);

View File

@ -138,7 +138,7 @@ bool QtHost::InNoGUIMode()
QString QtHost::GetAppNameAndVersion()
{
return QStringLiteral("DuckStation %1 (%2)").arg(g_scm_tag_str).arg(g_scm_branch_str);
return QStringLiteral("DuckStation %1").arg(QLatin1StringView(g_scm_tag_str));
}
QString QtHost::GetAppConfigSuffix()