mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
add a pause for context swaps on menu release
This commit is contained in:
parent
53c9af1033
commit
3838f3bc15
1 changed files with 1 additions and 0 deletions
|
|
@ -323,6 +323,7 @@ impl<'a> Menu<'a> {
|
||||||
// give up focus before issuing the command, as some commands conflict with loss of focus...
|
// give up focus before issuing the command, as some commands conflict with loss of focus...
|
||||||
if mi.close_on_select {
|
if mi.close_on_select {
|
||||||
self.gam.relinquish_focus().unwrap();
|
self.gam.relinquish_focus().unwrap();
|
||||||
|
xous::yield_slice();
|
||||||
#[cfg(not(target_os = "xous"))]
|
#[cfg(not(target_os = "xous"))]
|
||||||
ticktimer_server::Ticktimer::new().unwrap().sleep_ms(100).unwrap();
|
ticktimer_server::Ticktimer::new().unwrap().sleep_ms(100).unwrap();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue