Add git tag to version info

This commit is contained in:
WarmUpTill
2021-10-17 21:33:15 +02:00
committed by WarmUpTill
parent e3f277c32a
commit 32e2a5f44c
5 changed files with 8 additions and 1 deletions

View File

@@ -599,6 +599,7 @@ static void OBSEvent(enum obs_frontend_event event, void *switcher)
extern "C" void InitSceneSwitcher()
{
blog(LOG_INFO, "version: %s", g_GIT_TAG);
blog(LOG_INFO, "version: %s", g_GIT_SHA1);
QAction *action = (QAction *)obs_frontend_add_tools_menu_qaction(

View File

@@ -887,4 +887,6 @@ void AdvSceneSwitcher::setupGeneralTab()
QTimer *statusTimer = new QTimer(this);
connect(statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
statusTimer->start(1000);
setWindowTitle(windowTitle() + " - " + g_GIT_TAG);
}

View File

@@ -1 +1,2 @@
extern const char g_GIT_SHA1[];
extern const char g_GIT_TAG[];