mirror of
https://github.com/spalencsar/bearwave.git
synced 2026-07-06 22:24:17 +02:00
fix: About version label QML arg() chaining (1.0.5 pkgrel 5)
QML string arg() accepts one placeholder at a time; passing two arguments at once caused "String.arg(): Invalid arguments" on AboutDialog load.
This commit is contained in:
@@ -24,8 +24,8 @@ ApplicationWindow {
|
||||
|
||||
property var currentPage: "top"
|
||||
property var backend: (typeof radioBackend !== "undefined" ? radioBackend : null)
|
||||
readonly property string appVersion: (typeof bearwaveVersion !== "undefined" ? bearwaveVersion : Qt.application.version)
|
||||
readonly property string appBuildId: (typeof bearwaveBuildId !== "undefined" ? bearwaveBuildId : "?")
|
||||
readonly property string appVersion: (typeof bearwaveVersion !== "undefined" ? ("" + bearwaveVersion) : Qt.application.version)
|
||||
readonly property string appBuildId: (typeof bearwaveBuildId !== "undefined" ? ("" + bearwaveBuildId) : "?")
|
||||
property bool compactMode: width < 780
|
||||
property real contentOpacity: 1.0
|
||||
property string activeQuickFilter: ""
|
||||
|
||||
@@ -55,7 +55,7 @@ Dialog {
|
||||
|
||||
Label {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: qsTr("Version %1 · build %2").arg(String(root.appVersion), String(root.buildId))
|
||||
text: qsTr("Version %1 · build %2").arg(root.appVersion).arg(root.buildId)
|
||||
color: BearTheme.textMuted
|
||||
font.pixelSize: 12
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user