From b65272f5e176c86ad1280360928d63d0f2489929 Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Sat, 2 May 2026 14:36:19 -0500 Subject: mainwindow: show semver in beta titlebar too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Beta titlebar was "Fluorine Manager beta @ " — the version line (0.1.x vs 0.2.x) was invisible. Switch to "-beta @ " so the running build's major/minor is obvious without opening the About dialog. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/src/mainwindow.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/src/mainwindow.cpp b/src/src/mainwindow.cpp index 392c751..6a663ce 100644 --- a/src/src/mainwindow.cpp +++ b/src/src/mainwindow.cpp @@ -698,14 +698,16 @@ void MainWindow::updateWindowTitle(const APIUserAccount& user) { //"\xe2\x80\x93" is an "em dash", a longer "-" #if FLUORINE_IS_BETA_BUILD - // Beta builds mutate on every CI run, so a fixed semver is misleading — - // show the short commit hash instead so users can tell exactly which - // build they're on at a glance. + // Beta builds: "-beta @ " so users can see both the line + // they're on (e.g. 0.2.0) and the exact commit. Plain "beta @ " + // hid the version, making it impossible to tell at a glance whether a + // user was running 0.1.x or 0.2.x betas. const QString commitShort = QStringLiteral(FLUORINE_BUILD_COMMIT); - const QString versionLabel = - commitShort.isEmpty() - ? QStringLiteral("beta") - : (QStringLiteral("beta @ ") + commitShort); + QString versionLabel = QStringLiteral(FLUORINE_VERSION_STRING) + + QStringLiteral("-beta"); + if (!commitShort.isEmpty()) { + versionLabel += QStringLiteral(" @ ") + commitShort; + } #else const QString versionLabel = m_OrganizerCore.getVersion().string(Version::FormatCondensed); -- cgit v1.3.1