From db392408b97a6670b599566b5b52f033a277bc8e Mon Sep 17 00:00:00 2001 From: Paddy Date: Wed, 12 Jan 2022 02:32:06 +0100 Subject: [PATCH] [companion] Show commit hash and link to github issues in About dialog (#1415) * Include Git Commit Number into about popup and refferencing to the github commit via link * Add Link to Create New Issue on Github * Add Link to Create New Issue on Github --- companion/src/mainwindow.cpp | 6 +++++- companion/src/version.h.in | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/companion/src/mainwindow.cpp b/companion/src/mainwindow.cpp index dab9309e1b5..2eb6addbe89 100644 --- a/companion/src/mainwindow.cpp +++ b/companion/src/mainwindow.cpp @@ -1024,8 +1024,12 @@ void MainWindow::about() aboutStr.append(tr("If you've found this program useful, please support by donating").arg(DONATE_STR)); aboutStr.append("

"); aboutStr.append(QString("Version %1 \"%2\", %3").arg(VERSION).arg(CODENAME).arg(__DATE__)); + aboutStr.append("
"); + aboutStr.append(QString("Commit %2").arg("https://github.com/EdgeTX/edgetx/commit/" GIT_STR).arg(GIT_STR)); aboutStr.append("

"); - aboutStr.append(tr("Copyright") + QString(" © 2021 EdgeTX
")); + aboutStr.append(tr("File new Issue or Request").arg("https://github.com/EdgeTX/edgetx/issues/new/choose")); + aboutStr.append("

"); + aboutStr.append(tr("Copyright") + QString(" © 2022 EdgeTX
")); // aboutStr.append(tr("Copyright") + QString(" © 2021-%1 EdgeTX
").arg(QString(__DATE__).right(4))); QMessageBox msgBox(this); diff --git a/companion/src/version.h.in b/companion/src/version.h.in index f65ee2239f4..175225dda91 100644 --- a/companion/src/version.h.in +++ b/companion/src/version.h.in @@ -4,6 +4,7 @@ #define VERSION_REVISION @VERSION_REVISION@ #define VERSION_SUFFIX "@VERSION_SUFFIX@" #define CODENAME "@CODENAME@" +#define GIT_STR "@GIT_STR@" #define VERSION_NUMBER ((VERSION_MAJOR << 16) | (VERSION_MINOR << 8) | VERSION_REVISION)