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:
Sebastian Palencsar
2026-06-22 17:06:59 +02:00
parent 872670bd3e
commit 2224307056
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
# Maintainer: Sebastian Palencsar <moin@nerdbear.de>
pkgname=bearwave-git
pkgver=1.0.5
pkgrel=4
pkgrel=5
pkgdesc="KDE-focused desktop internet radio app"
arch=('x86_64')
url="https://github.com/spalencsar/bearwave"

View File

@@ -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: ""

View File

@@ -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
}