From 50e5bfb5b057cf130d50dfdd2a4907a8bc7c0ae8 Mon Sep 17 00:00:00 2001 From: Sam Sartor Date: Mon, 4 May 2026 23:12:01 -0600 Subject: [PATCH] fix version reporting after refactor --- client/src/lib.rs | 2 ++ gui/src/main.rs | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/lib.rs b/client/src/lib.rs index 59c8226..329a138 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -9,3 +9,5 @@ pub use imp::*; pub use mainloop::*; pub use mime_guess; pub use reqwest; + +pub const VERSION: Option<&str> = option_env!("MUMBLE_WEB2_VERSION"); diff --git a/gui/src/main.rs b/gui/src/main.rs index dd41eeb..e623db7 100644 --- a/gui/src/main.rs +++ b/gui/src/main.rs @@ -4,7 +4,7 @@ use dioxus::prelude::*; use mumble_web2_client::{ network_entrypoint, reqwest, AudioSettings, ChannelId, Command, ConfigSystem, ConfigSystemInterface as _, ConnectionState, Platform, PlatformInterface as _, ServerState, - SharedState, State, UserId, UserState, + SharedState, State, UserId, UserState, VERSION, }; use mumble_web2_common::{ProxyOverrides, ServerStatus}; use std::collections::{HashMap, HashSet}; @@ -571,13 +571,12 @@ pub fn LoginView(overrides: Resource) -> Element { ), Connected => unreachable!(), }; - let version = option_env!("MUMBLE_WEB2_VERSION"); rsx!( div { class: "login", h1 { "Mumble Web" - match version { + match VERSION { Some(v) => rsx!(" " span { class: "login_version", "({v})" }), None => rsx!(), }