mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
add raise/lower debug info
This commit is contained in:
parent
f041dfb9b4
commit
e33c7b9ecc
1 changed files with 4 additions and 2 deletions
|
|
@ -328,8 +328,9 @@ impl ContextManager {
|
||||||
let mut leaving_visibility: bool = false;
|
let mut leaving_visibility: bool = false;
|
||||||
{
|
{
|
||||||
// using a temp copy of the old focus, check if we need to update any visibility state
|
// using a temp copy of the old focus, check if we need to update any visibility state
|
||||||
let maybe_leaving_focused_context = if self.focused_context.is_some() {
|
let maybe_leaving_focused_context = if let Some(focused_token) = self.focused_context {
|
||||||
if let Some(old_context) = self.get_context_by_token(self.focused_context.unwrap()) {
|
log::debug!("leaving {:?}", self.tm.lookup_name(&focused_token));
|
||||||
|
if let Some(old_context) = self.get_context_by_token(focused_token) {
|
||||||
Some(old_context.clone())
|
Some(old_context.clone())
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
@ -337,6 +338,7 @@ impl ContextManager {
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
log::debug!("entering {:?}", self.tm.lookup_name(&token));
|
||||||
let maybe_new_focus = self.get_context_by_token_mut(token);
|
let maybe_new_focus = self.get_context_by_token_mut(token);
|
||||||
log::trace!("resolving visibility rules");
|
log::trace!("resolving visibility rules");
|
||||||
if let Some(context) = maybe_new_focus {
|
if let Some(context) = maybe_new_focus {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue