Simplify event queuing on macOS (#2642)

This commit is contained in:
Mads Marquart
2023-01-22 23:29:38 +01:00
committed by GitHub
parent 7341ee80ea
commit 0f2fbe373b
4 changed files with 143 additions and 270 deletions

View File

@@ -368,13 +368,6 @@ impl AppState {
HANDLER.events().push_back(wrapper);
}
pub fn queue_events(mut wrappers: VecDeque<EventWrapper>) {
if !is_main_thread() {
panic!("Events queued from different thread: {:#?}", wrappers);
}
HANDLER.events().append(&mut wrappers);
}
pub fn cleared(panic_info: Weak<PanicInfo>) {
let panic_info = panic_info
.upgrade()