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:
parent
dc74075ba2
commit
e33082778e
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue