use const api for None values

This commit is contained in:
yggverse 2024-12-13 00:39:40 +02:00
parent bcf8dcb83a
commit 5e4f442966
3 changed files with 7 additions and 7 deletions

View file

@ -60,7 +60,7 @@ impl File {
.filters(&filters)
.default_filter(&filter_pem)
.build()
.open(None::<&Window>, None::<&Cancellable>, {
.open(Window::NONE, Cancellable::NONE, {
let widget_action = widget_action.clone();
let button = button.clone();
let pem = pem.clone();

View file

@ -350,8 +350,8 @@ impl Reader {
}
// Scheme not supported, delegate
_ => UriLauncher::new(&uri.to_str()).launch(
None::<&Window>,
None::<&Cancellable>,
Window::NONE,
Cancellable::NONE,
|result| {
if let Err(error) = result {
println!("{error}")
@ -394,8 +394,8 @@ impl Reader {
}
// Scheme not supported, delegate
_ => UriLauncher::new(&uri.to_str()).launch(
None::<&Window>,
None::<&Cancellable>,
Window::NONE,
Cancellable::NONE,
|result| {
if let Err(e) = result {
println!("{e}")