Have the app actually open

This commit is contained in:
dav 2024-07-13 17:00:46 -07:00 committed by David Zhong
parent 74325059a7
commit 753e50f79d
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ use anyhow::Result;
fn main() -> Result<()> { fn main() -> Result<()> {
compile_gresources()?; compile_gresources()?;
tonic_build::compile_protos("../proto/burrow.proto")?; tonic_build::compile_protos("proto/burrow.proto")?;
Ok(()) Ok(())
} }

View file

@ -59,7 +59,7 @@ impl AsyncComponent for App {
sender: AsyncComponentSender<Self>, sender: AsyncComponentSender<Self>,
) -> AsyncComponentParts<Self> { ) -> AsyncComponentParts<Self> {
// TODO: RPC REFACTOR (Handle Error) // 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() let switch_screen = switch_screen::SwitchScreen::builder()
.launch(switch_screen::SwitchScreenInit { .launch(switch_screen::SwitchScreenInit {