Fix crash when closing windows
This commit is contained in:
@@ -59,6 +59,7 @@ pub trait Dispatcher: Send + Sync {
|
||||
pub trait Window: WindowContext {
|
||||
fn on_event(&mut self, callback: Box<dyn FnMut(Event)>);
|
||||
fn on_resize(&mut self, callback: Box<dyn FnMut(&mut dyn WindowContext)>);
|
||||
fn on_close(&mut self, callback: Box<dyn FnOnce()>);
|
||||
}
|
||||
|
||||
pub trait WindowContext {
|
||||
|
||||
Reference in New Issue
Block a user