adding debug info in file_helper.rs

This commit is contained in:
Chris Cochrun 2024-02-23 11:13:37 -06:00
parent 5e36156d4f
commit ea686a9d9b

View file

@ -126,6 +126,7 @@ impl file_helper::FileHelper {
}
_ => debug!("nothing"),
};
debug!("trying to load file");
let file = file.pick_file();
if let Some(file) = file {
println!("loading-file: {:?}", file);
@ -138,6 +139,7 @@ impl file_helper::FileHelper {
QUrl::from(string.as_str())
}
} else {
error!("Couldn't load file, is xdg-desktop-portals correctly setup?");
QUrl::default()
}
}