context to use release → press; cleanups

This commit is contained in:
galister
2026-01-07 20:26:44 +09:00
parent 819313200b
commit 576506233e
2 changed files with 10 additions and 13 deletions

View File

@@ -222,7 +222,6 @@ pub(super) fn setup_custom_button<S: 'static>(
template_params.insert(attrib[PREFIX.len()..].into(), value.clone());
}
}
log::warn!("Context params: {template_params:?}");
let template_name: Rc<str> = template_name.into();
let context_menu = context_menu.clone();
@@ -333,8 +332,6 @@ pub(super) fn setup_custom_button<S: 'static>(
return;
};
log::warn!("{command} {arg}");
Box::new(move |_common, data, app, _| {
if !test_button(data) || !test_duration(&button, app) {
return Ok(EventResult::Pass);