From f7588296b8e1c605a5d4a3d59ede957161e2f00a Mon Sep 17 00:00:00 2001 From: dav Date: Sat, 13 Jul 2024 17:00:46 -0700 Subject: [PATCH] Have the app actually open --- burrow-gtk/build.rs | 2 +- burrow-gtk/src/components/app.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/burrow-gtk/build.rs b/burrow-gtk/build.rs index df2e3d2..2e4d607 100644 --- a/burrow-gtk/build.rs +++ b/burrow-gtk/build.rs @@ -2,7 +2,7 @@ use anyhow::Result; fn main() -> Result<()> { compile_gresources()?; - tonic_build::compile_protos("../proto/burrow.proto")?; + tonic_build::compile_protos("proto/burrow.proto")?; Ok(()) } diff --git a/burrow-gtk/src/components/app.rs b/burrow-gtk/src/components/app.rs index 6d64fa0..efbaa23 100644 --- a/burrow-gtk/src/components/app.rs +++ b/burrow-gtk/src/components/app.rs @@ -59,7 +59,7 @@ impl AsyncComponent for App { sender: AsyncComponentSender, ) -> AsyncComponentParts { // TODO: RPC REFACTOR (Handle Error) - let daemon_client = Arc::new(Mutex::new(Some(daemon::daemon_connect().await.unwrap()))); + let daemon_client = Arc::new(Mutex::new(daemon::daemon_connect().await.ok())); let switch_screen = switch_screen::SwitchScreen::builder() .launch(switch_screen::SwitchScreenInit {