Get app running and test passing after gpui App+Platform restructure

This commit is contained in:
Max Brunsfeld
2021-04-09 16:56:32 -07:00
parent 4ecc17b1bb
commit 079050541f
17 changed files with 719 additions and 749 deletions
+5 -3
View File
@@ -1,5 +1,5 @@
use fs::OpenOptions;
use gpui::platform::{current as platform, PathPromptOptions, Runner as _};
use gpui::platform::PathPromptOptions;
use log::LevelFilter;
use simplelog::SimpleLogger;
use std::{fs, path::PathBuf};
@@ -13,6 +13,7 @@ fn main() {
let app = gpui::App::new(assets::Assets).unwrap();
let (_, settings_rx) = settings::channel(&app.font_cache()).unwrap();
app.set_menus(menus::MENUS);
app.on_menu_command({
let settings_rx = settings_rx.clone();
move |command, ctx| match command {
@@ -34,7 +35,7 @@ fn main() {
_ => ctx.dispatch_global_action(command, ()),
}
})
.run(move |ctx| {
.on_finish_launching(move |ctx| {
workspace::init(ctx);
editor::init(ctx);
file_finder::init(ctx);
@@ -53,7 +54,8 @@ fn main() {
},
);
}
});
})
.run();
}
fn init_logger() {