handle unsupported scheme error

This commit is contained in:
yggverse 2024-09-26 02:50:55 +03:00
parent 06c63e8afe
commit 5aaa66f426

View File

@ -254,11 +254,17 @@ impl Page {
}, },
); );
} }
"nex" => { /* @TODO
todo!() "nex" => {}
} */
scheme => { scheme => {
println!("Protocol {scheme} not supported"); // Update
meta.borrow_mut().title = GString::from("Oops");
meta.borrow_mut().description =
GString::from(format!("Protocol {scheme} not supported"));
meta.borrow_mut().progress_fraction = 1.0;
let _ = widget.activate_action("win.update", None);
} }
} }
} }