Skip to content

Commit

Permalink
fix(layout): button active indicator is not always accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjoehnk committed Jun 29, 2024
1 parent b7610f1 commit cc37642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ui/ffi/src/apis/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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]
Expand Down

0 comments on commit cc37642

Please sign in to comment.