diff options
author | saturneric <[email protected]> | 2024-11-21 21:51:22 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-21 21:51:22 +0000 |
commit | 8d7f0577e2d6ebf952e0efbcde8633ed8704784d (patch) | |
tree | 1cecc651b85581b671d195567e9773f7ffd2a70a /src/ui/GpgFrontendApplication.cpp | |
parent | fix: solve nightly build issues (diff) | |
download | GpgFrontend-8d7f0577e2d6ebf952e0efbcde8633ed8704784d.tar.gz GpgFrontend-8d7f0577e2d6ebf952e0efbcde8633ed8704784d.zip |
feat: distinguish between develop, unstable and release versions
Diffstat (limited to '')
-rw-r--r-- | src/ui/GpgFrontendApplication.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp index a7e304d1..0ec82ba9 100644 --- a/src/ui/GpgFrontendApplication.cpp +++ b/src/ui/GpgFrontendApplication.cpp @@ -39,13 +39,22 @@ GpgFrontendApplication::GpgFrontendApplication(int &argc, char *argv[]) QIcon(":/icons/gpgfrontend.png")); #endif + QString application_display_name = GetProjectName(); + if (GetProjectBuildGitBranchName().contains("develop")) { + application_display_name += + " " + + QString("Unstable (%1)").arg(GetProjectBuildGitCommitHash().last(6)); + } else if (GetProjectBuildGitBranchName().contains("dev/")) { + application_display_name += + " " + QString("Dev (%1)").arg(GetProjectBuildGitCommitHash().last(6)); + } + LOG_I() << "Application Display Name: " << application_display_name; + // set the extra information of the build GpgFrontendApplication::setApplicationVersion(GetProjectVersion()); - GpgFrontendApplication::setApplicationName(QString::fromUtf8((PROJECT_NAME))); - GpgFrontendApplication::setApplicationDisplayName( - QString::fromUtf8((PROJECT_NAME))); - GpgFrontendApplication::setOrganizationName( - QString::fromUtf8((PROJECT_NAME))); + GpgFrontendApplication::setApplicationName(GetProjectName()); + GpgFrontendApplication::setApplicationDisplayName(application_display_name); + // GpgFrontendApplication::setOrganizationName(GetProjectName()); GpgFrontendApplication::setQuitOnLastWindowClosed(true); // don't show icons in menus |