Panics · P01 Primitives: init returns an error, a missing app icon logs and shows a broken picture
This commit is contained in:
1 parent
52d3d790b1
commit
e5166e9e26
20 files changed
+159
-87
No files matched your search
@@ -54,7 +54,7 @@ fn main() {
|
||||
gpui_platform::application()
|
||||
.with_assets(Assets)
|
||||
.run(|cx: &mut App| {
|
||||
ely_gpui_component::init(cx);
|
||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||
cx.open_window(WindowOptions::default(), |window, cx| {
|
||||
cx.new(|cx| {
|
||||
let root = cx.focus_handle();
|
||||
|
||||
@@ -41,7 +41,7 @@ fn main() {
|
||||
gpui_platform::application()
|
||||
.with_assets(Assets)
|
||||
.run(|cx: &mut App| {
|
||||
ely_gpui_component::init(cx);
|
||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||
cx.open_window(WindowOptions::default(), |window, cx| {
|
||||
cx.new(|cx| {
|
||||
let focus = cx.focus_handle();
|
||||
|
||||
@@ -53,7 +53,7 @@ fn main() {
|
||||
gpui_platform::application()
|
||||
.with_assets(Assets)
|
||||
.run(|cx: &mut App| {
|
||||
ely_gpui_component::init(cx);
|
||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||
cx.set_global(
|
||||
I18n::new("en-US")
|
||||
.catalog(
|
||||
|
||||
@@ -87,7 +87,7 @@ fn main() {
|
||||
gpui_platform::application()
|
||||
.with_assets(AppAssets)
|
||||
.run(|cx: &mut App| {
|
||||
ely_gpui_component::init(cx);
|
||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||
IconTheme::default()
|
||||
.name("Cargo.toml", IconName::Package)
|
||||
.apply(cx);
|
||||
|
||||
@@ -104,7 +104,7 @@ fn main() {
|
||||
gpui_platform::application()
|
||||
.with_assets(Assets)
|
||||
.run(|cx: &mut App| {
|
||||
ely_gpui_component::init(cx);
|
||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||
cx.open_window(WindowOptions::default(), |window, cx| {
|
||||
cx.new(|cx| {
|
||||
let focus = cx.focus_handle();
|
||||
|
||||
@@ -78,7 +78,7 @@ fn main() {
|
||||
gpui_platform::application()
|
||||
.with_assets(Assets)
|
||||
.run(|cx: &mut App| {
|
||||
ely_gpui_component::init(cx);
|
||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||
cx.open_window(WindowOptions::default(), |window, cx| {
|
||||
cx.new(|cx| {
|
||||
let focus = cx.focus_handle();
|
||||
|
||||
@@ -56,7 +56,7 @@ fn main() {
|
||||
gpui_platform::application()
|
||||
.with_assets(Assets)
|
||||
.run(|cx: &mut App| {
|
||||
ely_gpui_component::init(cx);
|
||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||
cx.open_window(WindowOptions::default(), |window, cx| {
|
||||
cx.new(|cx| {
|
||||
let focus = cx.focus_handle();
|
||||
|
||||
@@ -45,7 +45,7 @@ fn main() {
|
||||
gpui_platform::application()
|
||||
.with_assets(Assets)
|
||||
.run(|cx: &mut App| {
|
||||
ely_gpui_component::init(cx);
|
||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||
Theme::set_mode_now(Mode::Dark, cx);
|
||||
let bounds = Bounds::centered(None, size(px(640.0), px(400.0)), cx);
|
||||
let options = WindowOptions {
|
||||
|
||||
@@ -100,7 +100,7 @@ fn main() {
|
||||
gpui_platform::application()
|
||||
.with_assets(Assets)
|
||||
.run(|cx: &mut App| {
|
||||
ely_gpui_component::init(cx);
|
||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||
cx.open_window(WindowOptions::default(), |window, cx| {
|
||||
cx.new(|cx| {
|
||||
let focus = cx.focus_handle();
|
||||
|
||||
Reference in new issue
Block a user