reset idle timer for all events
This commit is contained in:
parent
e5fd5e2a9c
commit
d544376590
1 changed files with 7 additions and 4 deletions
|
@ -314,20 +314,23 @@ impl Application {
|
|||
event = self.editor.wait_event() => {
|
||||
let _idle_handled = self.handle_editor_event(event).await;
|
||||
|
||||
// for integration tests only, reset the idle timer after every
|
||||
// event to signal when test events are done processing
|
||||
#[cfg(feature = "integration")]
|
||||
{
|
||||
if _idle_handled {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// for integration tests only, reset the idle timer after every
|
||||
// event to signal when test events are done processing
|
||||
#[cfg(feature = "integration")]
|
||||
{
|
||||
self.editor.reset_idle_timer();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn handle_config_events(&mut self, config_event: ConfigEvent) {
|
||||
match config_event {
|
||||
|
|
Loading…
Add table
Reference in a new issue