refactor: cargo fmt
This commit is contained in:
@@ -99,16 +99,14 @@ impl InputHandler {
|
||||
}
|
||||
};
|
||||
|
||||
let gui_state = Arc::clone(&self.gui_state);
|
||||
|
||||
// If the info box sleep handle is currently being executed, as in m is pressed twice within a 4000ms window
|
||||
// then cancel the first handle, as a new handle will be invoked
|
||||
if let Some(info_sleep_timer) = self.info_sleep.as_ref() {
|
||||
info_sleep_timer.abort();
|
||||
// If the info box sleep handle is currently being executed, as in m is pressed twice within a 4000ms window
|
||||
// then cancel the first handle, as a new handle will be invoked
|
||||
if let Some(info_sleep_timer) = self.info_sleep.as_ref() {
|
||||
info_sleep_timer.abort();
|
||||
}
|
||||
|
||||
// Some(self.info_sleep).as_ref().unwrap().ab
|
||||
|
||||
let gui_state = Arc::clone(&self.gui_state);
|
||||
// Show the info box - with "mouse capture enabled / disabled", for 4000 ms
|
||||
self.info_sleep = Some(tokio::spawn(async move {
|
||||
tokio::time::sleep(std::time::Duration::from_millis(4000)).await;
|
||||
gui_state.lock().reset_info_box()
|
||||
|
||||
Reference in New Issue
Block a user