Checkpoint

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2023-09-22 12:52:52 -06:00
parent e4e9da7673
commit d1791a999d
2 changed files with 8 additions and 14 deletions

View file

@ -47,9 +47,10 @@ impl App {
where
F: 'static + FnOnce(&mut AppContext),
{
let this = self.clone();
let platform = self.0.lock().platform.clone();
platform.borrow_on_main_thread().run(Box::new(move || {
let cx = &mut *self.0.lock();
let cx = &mut *this.0.lock();
on_finish_launching(cx);
}));
}