chore: debug speed limit selection mismatch
This commit is contained in:
@@ -131,6 +131,14 @@ pub fn StatusBar() -> impl IntoView {
|
|||||||
limits.clone().into_iter().map(|(val, label)| {
|
limits.clone().into_iter().map(|(val, label)| {
|
||||||
let is_active = move || {
|
let is_active = move || {
|
||||||
let current = stats.get().down_limit.unwrap_or(0);
|
let current = stats.get().down_limit.unwrap_or(0);
|
||||||
|
if down_menu_open.get() {
|
||||||
|
logging::log!("Down Active Check: current={} (i64), val={} (i64), diff={}, match={}",
|
||||||
|
current,
|
||||||
|
val,
|
||||||
|
(current - val).abs(),
|
||||||
|
(current - val).abs() < 1024
|
||||||
|
);
|
||||||
|
}
|
||||||
(current - val).abs() < 1024
|
(current - val).abs() < 1024
|
||||||
};
|
};
|
||||||
view! {
|
view! {
|
||||||
|
|||||||
Reference in New Issue
Block a user