This commit is contained in:
Nathan Sobo 2023-09-30 10:01:59 -06:00
parent ef01a64826
commit 4212a45767
6 changed files with 30 additions and 47 deletions

View file

@ -20,26 +20,21 @@ fn main() {
SimpleLogger::init(LevelFilter::Info, Default::default()).expect("could not initialize logger");
gpui3::App::production().run(|cx| {
cx.run_on_main(|cx| {
dbg!("Run on main");
let window = cx.open_window(
WindowOptions {
bounds: WindowBounds::Fixed(Bounds {
size: gpui3::Size {
width: 800_f32.into(),
height: 600_f32.into(),
},
..Default::default()
}),
let window = cx.open_window(
WindowOptions {
bounds: WindowBounds::Fixed(Bounds {
size: gpui3::Size {
width: 800_f32.into(),
height: 600_f32.into(),
},
..Default::default()
},
|cx| {
dbg!("in build_root_view");
workspace(cx)
},
);
cx.activate(true);
});
}),
..Default::default()
},
|cx| workspace(cx),
);
cx.activate(true);
});
}