Pass the on_finish_launching callback to Platform::run

This commit is contained in:
Nathan Sobo
2021-04-09 21:33:17 -06:00
parent 079050541f
commit 448dace281
7 changed files with 51 additions and 67 deletions
+3 -1
View File
@@ -39,7 +39,9 @@ impl super::Platform for Platform {
fn on_open_files(&self, _: Box<dyn FnMut(Vec<std::path::PathBuf>)>) {}
fn on_finish_launching(&self, _: Box<dyn FnOnce() -> ()>) {}
fn run(&self, _on_finish_launching: Box<dyn FnOnce() -> ()>) {
unimplemented!()
}
fn dispatcher(&self) -> Arc<dyn super::Dispatcher> {
self.dispatcher.clone()