adding debug info in file_helper.rs
This commit is contained in:
parent
5e36156d4f
commit
ea686a9d9b
1 changed files with 2 additions and 0 deletions
|
@ -126,6 +126,7 @@ impl file_helper::FileHelper {
|
||||||
}
|
}
|
||||||
_ => debug!("nothing"),
|
_ => debug!("nothing"),
|
||||||
};
|
};
|
||||||
|
debug!("trying to load file");
|
||||||
let file = file.pick_file();
|
let file = file.pick_file();
|
||||||
if let Some(file) = file {
|
if let Some(file) = file {
|
||||||
println!("loading-file: {:?}", file);
|
println!("loading-file: {:?}", file);
|
||||||
|
@ -138,6 +139,7 @@ impl file_helper::FileHelper {
|
||||||
QUrl::from(string.as_str())
|
QUrl::from(string.as_str())
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
error!("Couldn't load file, is xdg-desktop-portals correctly setup?");
|
||||||
QUrl::default()
|
QUrl::default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue