mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-03 22:35:45 +02:00
about-dialog: only show the project versions if available
This is a workaround for an issue that occurs due to the way Linux packaging is done, where the git repository is not available in the build source at configure time, which is when the version files are generated, so we prevent a "." from being displayed if the version string is not available. Gitlab: #1857 Change-Id: I2f6a281eb89ec0f977749d135da68fe5b7c9c2da
This commit is contained in:
parent
2f163846c7
commit
fb660b928f
1 changed files with 14 additions and 2 deletions
|
@ -104,8 +104,20 @@ BaseModalDialog {
|
|||
font.pixelSize: JamiTheme.textFontSize
|
||||
padding: 0
|
||||
readonly property bool isBeta: AppVersionManager.isCurrentVersionBeta()
|
||||
text: JamiStrings.buildID + ": " + UtilsAdapter.getBuildIDStr() + "\n" +
|
||||
JamiStrings.version + ": " + (isBeta ? "(Beta) " : "") + UtilsAdapter.getVersionStr()
|
||||
text: {
|
||||
// HACK: Only display the version string if it has been constructed properly.
|
||||
// This is a workaround for an issue that occurs due to the way Linux
|
||||
// packaging is done, where the git repository is not available in the
|
||||
// build source at configure time, which is when the version files are
|
||||
// generated, so we prevent a "." from being displayed if the version
|
||||
// string is not available.
|
||||
var contentStr = JamiStrings.buildID + ": " + UtilsAdapter.getBuildIDStr();
|
||||
const versionStr = UtilsAdapter.getVersionStr()
|
||||
if (versionStr.length > 1) {
|
||||
contentStr += "\n" + JamiStrings.version + ": " + (isBeta ? "(Beta) " : "") + versionStr
|
||||
}
|
||||
return contentStr
|
||||
}
|
||||
|
||||
selectByMouse: true
|
||||
readOnly: true
|
||||
|
|
Loading…
Add table
Reference in a new issue