fix: About dialog version display (1.0.7)

Pass app version and build id explicitly from Main.qml to AboutDialog
instead of relying on context properties inside the QML module scope.
Remove the confusing "Public beta" label.
This commit is contained in:
Sebastian Palencsar
2026-06-22 16:52:18 +02:00
parent 75ef65e1d8
commit 5eef320b5a
5 changed files with 17 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.16)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(bearwave VERSION 1.0.6 LANGUAGES CXX) project(bearwave VERSION 1.0.7 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)

View File

@@ -1,6 +1,6 @@
{ {
"app-id": "de.nerdbear.bearwave", "app-id": "de.nerdbear.bearwave",
"version": "1.0.6", "version": "1.0.7",
"runtime": "org.kde.Platform", "runtime": "org.kde.Platform",
"runtime-version": "6.10", "runtime-version": "6.10",
"sdk": "org.kde.Sdk", "sdk": "org.kde.Sdk",

View File

@@ -59,6 +59,14 @@
</provides> </provides>
<releases> <releases>
<release version="1.0.7" date="2026-06-22">
<description>
<ul>
<li>About dialog shows the correct app version via explicit QML bindings</li>
<li>Removed confusing “Public beta” label from About</li>
</ul>
</description>
</release>
<release version="1.0.6" date="2026-06-22"> <release version="1.0.6" date="2026-06-22">
<description> <description>
<ul> <ul>

View File

@@ -24,6 +24,8 @@ ApplicationWindow {
property var currentPage: "top" property var currentPage: "top"
property var backend: (typeof radioBackend !== "undefined" ? radioBackend : null) 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 : "?")
property bool compactMode: width < 780 property bool compactMode: width < 780
property real contentOpacity: 1.0 property real contentOpacity: 1.0
property string activeQuickFilter: "" property string activeQuickFilter: ""
@@ -240,6 +242,8 @@ ApplicationWindow {
AboutDialog { AboutDialog {
id: aboutDialog id: aboutDialog
compactMode: root.compactMode compactMode: root.compactMode
appVersion: root.appVersion
buildId: root.appBuildId
} }
ToastPopup { ToastPopup {

View File

@@ -11,6 +11,8 @@ Dialog {
id: root id: root
required property bool compactMode required property bool compactMode
required property string appVersion
required property string buildId
modal: true modal: true
anchors.centerIn: Overlay.overlay anchors.centerIn: Overlay.overlay
@@ -53,20 +55,10 @@ Dialog {
Label { Label {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
text: qsTr("Version: %1 (%2)").arg( text: qsTr("Version %1 · build %2").arg(root.appVersion, root.buildId)
(typeof bearwaveVersion !== "undefined" ? bearwaveVersion : Qt.application.version),
(typeof bearwaveBuildId !== "undefined" ? bearwaveBuildId : "?"))
color: BearTheme.textMuted color: BearTheme.textMuted
font.pixelSize: 12 font.pixelSize: 12
} }
Label {
Layout.alignment: Qt.AlignHCenter
text: qsTr("Public beta")
color: BearTheme.accent
font.pixelSize: 12
font.bold: true
}
} }
ColumnLayout { ColumnLayout {