Remove the last of the major todos
This commit is contained in:
@@ -111,6 +111,11 @@ impl TestAppContext {
|
||||
self.fn_name
|
||||
}
|
||||
|
||||
/// Checks whether there have been any new path prompts received by the platform.
|
||||
pub fn did_prompt_for_new_path(&self) -> bool {
|
||||
self.test_platform.did_prompt_for_new_path()
|
||||
}
|
||||
|
||||
/// returns a new `TestAppContext` re-using the same executors to interleave tasks.
|
||||
pub fn new_app(&self) -> TestAppContext {
|
||||
Self::new(self.dispatcher.clone(), self.fn_name)
|
||||
|
||||
@@ -102,6 +102,10 @@ impl TestPlatform {
|
||||
})
|
||||
.detach();
|
||||
}
|
||||
|
||||
pub(crate) fn did_prompt_for_new_path(&self) -> bool {
|
||||
self.prompts.borrow().new_path.len() > 0
|
||||
}
|
||||
}
|
||||
|
||||
impl Platform for TestPlatform {
|
||||
|
||||
@@ -1474,9 +1474,7 @@ impl<'a> WindowContext<'a> {
|
||||
InputEvent::MouseUp(mouse_up)
|
||||
}
|
||||
InputEvent::MouseExited(mouse_exited) => {
|
||||
// todo!("Should we record that the mouse is outside of the window somehow? Or are these global pixels?")
|
||||
self.window.modifiers = mouse_exited.modifiers;
|
||||
|
||||
InputEvent::MouseExited(mouse_exited)
|
||||
}
|
||||
InputEvent::ModifiersChanged(modifiers_changed) => {
|
||||
|
||||
Reference in New Issue
Block a user