mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-28 12:04:13 +00:00
handle unsupported scheme error
This commit is contained in:
parent
06c63e8afe
commit
5aaa66f426
@ -254,11 +254,17 @@ impl Page {
|
||||
},
|
||||
);
|
||||
}
|
||||
"nex" => {
|
||||
todo!()
|
||||
}
|
||||
/* @TODO
|
||||
"nex" => {}
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user