Add debug messages

master
Dustin 2025-08-01 09:08:17 -05:00
parent fbd9ecedc7
commit c5c0130ae2
1 changed files with 15 additions and 1 deletions

View File

@ -13,6 +13,17 @@ fn main() {
});
let webview = WebView::new();
webview.connect_load_changed(|_, load_event| {
eprintln!("Loaded: {load_event:?}");
});
webview.connect_load_failed(|_, load_event, failing_uri, error| {
eprintln!(
"Load failed: {load_event:?} while loading {failing_uri} - {}",
error.message()
);
false
});
window.add(&webview);
window.show_all();
@ -25,7 +36,10 @@ fn main() {
.build()
.unwrap()
.block_on(async {
sender.send("https://kitchen.pyrocufflink.blue/").await.unwrap();
sender
.send("https://kitchen.pyrocufflink.blue/")
.await
.unwrap();
})
});
glib::spawn_future_local(async move {