From eca430ccc621dc0942df1349159ffb40313c169d Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Sat, 16 May 2026 14:10:02 +0700 Subject: [PATCH] feat(menu): show current version on the Check-for-Updates entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Appends ' · v{CARGO_PKG_VERSION}' to every state of the version-action menu item so users can see what they are running without opening an About dialog. Reads as 'Check for updates · v0.1.7', 'Up to date · v0.1.7', etc. Winget channel decoration is preserved as a trailing parenthetical. Bumps version to 0.1.7. --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/app.rs | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 870696f..9cbaa48 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,7 +59,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "claude-code-usage-bubble" -version = "0.1.6" +version = "0.1.7" dependencies = [ "dirs", "embed-resource", diff --git a/Cargo.toml b/Cargo.toml index be73205..017ae18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "claude-code-usage-bubble" -version = "0.1.6" +version = "0.1.7" edition = "2021" license = "Apache-2.0" description = "Floating bubble showing Claude Code and Codex usage on Windows" diff --git a/src/app.rs b/src/app.rs index 286b1eb..e928233 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1067,9 +1067,13 @@ fn version_action_label(snap: &ContextMenuSnapshot) -> String { UpdateStatus::Applying => snap.strings.applying_update.clone(), UpdateStatus::Failed => snap.strings.update_failed.clone(), }; + // Append the running binary's version so the user can see what + // they are on without opening an About dialog. Using middle-dot as + // the separator matches the bubble's countdown formatting. + let with_version = format!("{base} \u{00b7} v{}", env!("CARGO_PKG_VERSION")); match snap.install_channel { - InstallChannel::Winget => format!("{base} ({})", snap.strings.update_via_winget), - InstallChannel::Portable => base, + InstallChannel::Winget => format!("{with_version} ({})", snap.strings.update_via_winget), + InstallChannel::Portable => with_version, } }