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
+2 -3
View File
@@ -35,7 +35,7 @@ fn main() {
_ => ctx.dispatch_global_action(command, ()),
}
})
.on_finish_launching(move |ctx| {
.run(move |ctx| {
workspace::init(ctx);
editor::init(ctx);
file_finder::init(ctx);
@@ -54,8 +54,7 @@ fn main() {
},
);
}
})
.run();
});
}
fn init_logger() {