lesavka: stabilize preview probes and bump semver
This commit is contained in:
parent
e8670a1c58
commit
d4cc469173
@ -4,7 +4,7 @@ path = "src/main.rs"
|
||||
|
||||
[package]
|
||||
name = "lesavka_client"
|
||||
version = "0.6.0"
|
||||
version = "0.7.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@ -216,6 +216,16 @@ fn refresh_eye_feed_controls(
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(coverage))]
|
||||
fn eye_caps_changed(state: &LauncherState, caps: &crate::handshake::PeerCaps) -> bool {
|
||||
let next_width = caps.eye_width.unwrap_or(state.preview_source.width);
|
||||
let next_height = caps.eye_height.unwrap_or(state.preview_source.height);
|
||||
let next_fps = caps.eye_fps.unwrap_or(state.preview_source.fps);
|
||||
state.preview_source.width != next_width
|
||||
|| state.preview_source.height != next_height
|
||||
|| state.preview_source.fps != next_fps
|
||||
}
|
||||
|
||||
#[cfg(not(coverage))]
|
||||
fn record_diagnostics_sample(
|
||||
widgets: &super::ui_components::LauncherWidgets,
|
||||
@ -1589,6 +1599,7 @@ pub fn run_gui_launcher(server_addr: String) -> Result<()> {
|
||||
CapsMessage::Refresh(probe_result) => {
|
||||
diagnostics_network.borrow_mut().record(&probe_result);
|
||||
let caps = probe_result.caps;
|
||||
let rebind_preview = eye_caps_changed(&state.borrow(), &caps);
|
||||
{
|
||||
let mut state = state.borrow_mut();
|
||||
if probe_result.reachable {
|
||||
@ -1602,14 +1613,16 @@ pub fn run_gui_launcher(server_addr: String) -> Result<()> {
|
||||
(caps.eye_width, caps.eye_height)
|
||||
{
|
||||
let fps = caps.eye_fps.unwrap_or(30);
|
||||
{
|
||||
let mut state = state.borrow_mut();
|
||||
state.set_preview_source_profile(width, height, fps);
|
||||
}
|
||||
if let Some(preview) = preview.as_ref() {
|
||||
{
|
||||
let mut state = state.borrow_mut();
|
||||
state.set_preview_source_profile(width, height, fps);
|
||||
}
|
||||
if rebind_preview && let Some(preview) = preview.as_ref() {
|
||||
for monitor_id in 0..2 {
|
||||
let capture = state.borrow().capture_size_choice(monitor_id);
|
||||
let breakout = state.borrow().breakout_size_choice(monitor_id);
|
||||
let capture =
|
||||
state.borrow().capture_size_choice(monitor_id);
|
||||
let breakout =
|
||||
state.borrow().breakout_size_choice(monitor_id);
|
||||
preview.set_capture_profile(
|
||||
monitor_id,
|
||||
capture.width,
|
||||
|
||||
@ -2,7 +2,9 @@
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
pub const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "+", env!("LESAVKA_GIT_SHA"));
|
||||
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
pub const BUILD_ID: &str = env!("LESAVKA_GIT_SHA");
|
||||
pub const FULL_VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "+", env!("LESAVKA_GIT_SHA"));
|
||||
|
||||
pub mod app;
|
||||
mod app_support;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "lesavka_common"
|
||||
version = "0.6.0"
|
||||
version = "0.7.0"
|
||||
edition = "2024"
|
||||
build = "build.rs"
|
||||
|
||||
|
||||
@ -17,6 +17,6 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn banner_includes_version() {
|
||||
assert_eq!(banner("0.6.0"), "lesavka-common CLI (v0.6.0)");
|
||||
assert_eq!(banner("0.7.0"), "lesavka-common CLI (v0.7.0)");
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,7 +10,7 @@ bench = false
|
||||
|
||||
[package]
|
||||
name = "lesavka_server"
|
||||
version = "0.6.0"
|
||||
version = "0.7.0"
|
||||
edition = "2024"
|
||||
autobins = false
|
||||
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
// server/src/lib.rs
|
||||
|
||||
pub const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "+", env!("LESAVKA_GIT_SHA"));
|
||||
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
pub const BUILD_ID: &str = env!("LESAVKA_GIT_SHA");
|
||||
pub const FULL_VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "+", env!("LESAVKA_GIT_SHA"));
|
||||
|
||||
pub mod audio;
|
||||
pub mod camera;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user