Merge pull request #8234 from JosJuice/version-in-title

Show Dolphin version in render window title
This commit is contained in:
JosJuice 2019-07-15 13:05:08 +02:00 committed by GitHub
commit 1606528093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@
#include "Common/StringUtil.h" #include "Common/StringUtil.h"
#include "Common/Thread.h" #include "Common/Thread.h"
#include "Common/Timer.h" #include "Common/Timer.h"
#include "Common/Version.h"
#include "Core/Analytics.h" #include "Core/Analytics.h"
#include "Core/Boot/Boot.h" #include "Core/Boot/Boot.h"
@ -865,7 +866,8 @@ void UpdateTitle()
} }
} }
std::string message = StringFromFormat("%s | %s", SSettings.c_str(), SFPS.c_str()); std::string message = StringFromFormat("%s | %s | %s", Common::scm_rev_str.c_str(),
SSettings.c_str(), SFPS.c_str());
if (SConfig::GetInstance().m_show_active_title) if (SConfig::GetInstance().m_show_active_title)
{ {
const std::string& title = SConfig::GetInstance().GetTitleDescription(); const std::string& title = SConfig::GetInstance().GetTitleDescription();