mirror of https://github.com/wayvr-org/wayvr.git
context to use release → press; cleanups
This commit is contained in:
parent
819313200b
commit
576506233e
|
|
@ -88,10 +88,10 @@
|
|||
<blueprint name="menu_app">
|
||||
<context_menu >
|
||||
<!-- title text="${name}" /-->
|
||||
<cell translation="BAR.TOGGLE_VISIBILITY" _release="::OverlayToggle ${name}" />
|
||||
<cell translation="BAR.RESET_POSITION" _release="::OverlayReset ${name}" />
|
||||
<cell translation="BAR.CLOSE_APP" _release="::WvrOverlayTermProcess ${name}" />
|
||||
<cell translation="BAR.FORCE_CLOSE_APP" _release="::WvrOverlayKillProcess ${name}" />
|
||||
<cell translation="BAR.TOGGLE_VISIBILITY" _press="::OverlayToggle ${name}" />
|
||||
<cell translation="BAR.RESET_POSITION" _press="::OverlayReset ${name}" />
|
||||
<cell translation="BAR.CLOSE_APP" _press="::WvrOverlayTermProcess ${name}" />
|
||||
<cell translation="BAR.FORCE_CLOSE_APP" _press="::WvrOverlayKillProcess ${name}" />
|
||||
</context_menu>
|
||||
</blueprint>
|
||||
|
||||
|
|
@ -123,9 +123,9 @@
|
|||
<blueprint name="menu_panel">
|
||||
<context_menu >
|
||||
<!-- title text="${name}" /-->
|
||||
<cell translation="BAR.TOGGLE_VISIBILITY" _release="::OverlayToggle ${name}" />
|
||||
<cell translation="BAR.RESET_POSITION" _release="::OverlayReset ${name}" />
|
||||
<cell translation="BAR.RELOAD_FROM_DISK" _release="::CustomOverlayReload ${name}" />
|
||||
<cell translation="BAR.TOGGLE_VISIBILITY" _press="::OverlayToggle ${name}" />
|
||||
<cell translation="BAR.RESET_POSITION" _press="::OverlayReset ${name}" />
|
||||
<cell translation="BAR.RELOAD_FROM_DISK" _press="::CustomOverlayReload ${name}" />
|
||||
</context_menu>
|
||||
</blueprint>
|
||||
|
||||
|
|
@ -138,9 +138,9 @@
|
|||
<blueprint name="menu_mirror">
|
||||
<context_menu >
|
||||
<!-- title text="${name}" /-->
|
||||
<cell translation="BAR.TOGGLE_VISIBILITY" _release="::OverlayToggle ${name}" />
|
||||
<cell translation="BAR.RESET_POSITION" _release="::OverlayReset ${name}" />
|
||||
<cell translation="BAR.CLOSE_MIRROR" _release="::OverlayDrop ${name}" />
|
||||
<cell translation="BAR.TOGGLE_VISIBILITY" _press="::OverlayToggle ${name}" />
|
||||
<cell translation="BAR.RESET_POSITION" _press="::OverlayReset ${name}" />
|
||||
<cell translation="BAR.CLOSE_MIRROR" _press="::OverlayDrop ${name}" />
|
||||
</context_menu>
|
||||
</blueprint>
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue