mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-03 15:04:13 +00:00
rename callback argument
This commit is contained in:
parent
e0adc0661c
commit
10c415063a
@ -20,7 +20,7 @@ impl Titan {
|
||||
// Constructors
|
||||
|
||||
/// Build new `Self`
|
||||
pub fn build(callback: impl Fn(&[u8]) + 'static) -> Self {
|
||||
pub fn build(on_sent: impl Fn(&[u8]) + 'static) -> Self {
|
||||
// Init local actions
|
||||
let action_update = SimpleAction::new(&uuid_string_random(), None);
|
||||
let action_send = SimpleAction::new(&uuid_string_random(), None);
|
||||
@ -46,7 +46,7 @@ impl Titan {
|
||||
|
||||
action_send.connect_activate({
|
||||
// @TODO let form = form.clone();
|
||||
move |_, _| callback(&[]) // @TODO input data
|
||||
move |_, _| on_sent(&[]) // @TODO input data
|
||||
});
|
||||
|
||||
// Return activated struct
|
||||
|
Loading…
x
Reference in New Issue
Block a user