Add function to check if user is interacting with anything
This commit is contained in:
parent
4741955f68
commit
eb589757a8
1 changed files with 5 additions and 0 deletions
|
@ -220,6 +220,11 @@ impl Data {
|
|||
self.memory.lock().unwrap().active_id = None;
|
||||
}
|
||||
}
|
||||
|
||||
/// Is the user interacting with anything?
|
||||
pub fn any_active(&self) -> bool {
|
||||
self.memory.lock().unwrap().active_id.is_some()
|
||||
}
|
||||
}
|
||||
|
||||
/// Show a pop-over window
|
||||
|
|
Loading…
Reference in a new issue