Skip to content

Commit

Permalink
[companion] Show commit hash and link to github issues in About dialog (
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
Nerenye authored Jan 12, 2022
1 parent 7a628d4 commit db39240
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion companion/src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1024,8 +1024,12 @@ void MainWindow::about()
aboutStr.append(tr("If you've found this program useful, please support by <a href='%1'>donating</a>").arg(DONATE_STR));
aboutStr.append("<br/><br/>");
aboutStr.append(QString("Version %1 \"%2\", %3").arg(VERSION).arg(CODENAME).arg(__DATE__));
aboutStr.append("<br/>");
aboutStr.append(QString("Commit <a href='%1'>%2</a>").arg("https://github.com/EdgeTX/edgetx/commit/" GIT_STR).arg(GIT_STR));
aboutStr.append("<br/><br/>");
aboutStr.append(tr("Copyright") + QString(" &copy; 2021 EdgeTX<br/>"));
aboutStr.append(tr("File new <a href='%1'>Issue or Request</a>").arg("https://github.com/EdgeTX/edgetx/issues/new/choose"));
aboutStr.append("<br/><br/>");
aboutStr.append(tr("Copyright") + QString(" &copy; 2022 EdgeTX<br/>"));
// aboutStr.append(tr("Copyright") + QString(" &copy; 2021-%1 EdgeTX<br/>").arg(QString(__DATE__).right(4)));

QMessageBox msgBox(this);
Expand Down
1 change: 1 addition & 0 deletions companion/src/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit db39240

Please sign in to comment.