diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-05-02 14:36:19 -0500 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-05-02 14:36:19 -0500 |
| commit | b65272f5e176c86ad1280360928d63d0f2489929 (patch) | |
| tree | 5e121ec3292376f346928f3ed86f0acf973e2bd8 | |
| parent | 56395dd5e3b6c757a8154176e043d5d8f7683fab (diff) | |
mainwindow: show semver in beta titlebar too
Beta titlebar was "Fluorine Manager beta @ <hash>" — the version line
(0.1.x vs 0.2.x) was invisible. Switch to "<semver>-beta @ <hash>" so
the running build's major/minor is obvious without opening the About
dialog.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
| -rw-r--r-- | src/src/mainwindow.cpp | 16 |
1 files 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: "<semver>-beta @ <hash>" so users can see both the line + // they're on (e.g. 0.2.0) and the exact commit. Plain "beta @ <hash>" + // 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); |
