added commit short hash to window title

This commit is contained in:
itsmattkc
2018-12-31 15:41:28 +11:00
parent 8a5bc58f9f
commit 33f890b554
2 changed files with 13 additions and 1 deletions
+8 -1
View File
@@ -54,7 +54,7 @@ MainWindow* mainWindow;
QTimer autorecovery_timer;
QString config_dir;
QString appName = "Olive (December 2018 | Alpha)";
QString appName;
bool demoNoticeShown = false;
void MainWindow::setup_layout(bool reset) {
@@ -96,6 +96,13 @@ void MainWindow::setup_layout(bool reset) {
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent)
{
appName = "Olive (December 2018 | Alpha";
#ifdef GITHASH
appName += " | ";
appName += GITHASH;
#endif
appName += ")";
setup_debug();
mainWindow = this;