From cc37642a167192333d5fda8daed9a135448224b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20J=C3=B6hnk?= Date: Sat, 29 Jun 2024 11:27:33 +0200 Subject: [PATCH] fix(layout): button active indicator is not always accurate --- crates/ui/ffi/src/apis/layout.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui/ffi/src/apis/layout.rs b/crates/ui/ffi/src/apis/layout.rs index d99a7f681..08fbc8cb8 100644 --- a/crates/ui/ffi/src/apis/layout.rs +++ b/crates/ui/ffi/src/apis/layout.rs @@ -50,7 +50,7 @@ pub extern "C" fn read_dial_value(ptr: *const LayoutRef, path: *const c_char) -> } #[no_mangle] -pub extern "C" fn read_button_value(ptr: *const LayoutRef, path: *const c_char) -> bool { +pub extern "C" fn read_button_value(ptr: *const LayoutRef, path: *const c_char) -> u8 { let path = unsafe { CStr::from_ptr(path) }; let path = path.to_str().unwrap(); let node_path = NodePath(path.to_string()); @@ -60,7 +60,7 @@ pub extern "C" fn read_button_value(ptr: *const LayoutRef, path: *const c_char) std::mem::forget(ffi); - value + value.into() } #[no_mangle]