Add debug messages
parent
fbd9ecedc7
commit
c5c0130ae2
16
src/main.rs
16
src/main.rs
|
@ -13,6 +13,17 @@ fn main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
let webview = WebView::new();
|
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.add(&webview);
|
||||||
|
|
||||||
window.show_all();
|
window.show_all();
|
||||||
|
@ -25,7 +36,10 @@ fn main() {
|
||||||
.build()
|
.build()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.block_on(async {
|
.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 {
|
glib::spawn_future_local(async move {
|
||||||
|
|
Loading…
Reference in New Issue