Fix (native) preview not taking account change in other files than the main file

Because it wouldn't take the files from the cache
This commit is contained in:
Olivier Goffart 2024-01-25 13:23:07 +01:00
parent af977e4590
commit 7d255a1a18
3 changed files with 8 additions and 5 deletions

View file

@ -19,7 +19,7 @@ pub fn is_url(path: &Path) -> bool {
}
/// Convert a `Path` to an `url::Url` if possible
pub fn to_url(path: &str) -> Option<url::Url> {
fn to_url(path: &str) -> Option<url::Url> {
let Ok(url) = url::Url::parse(path) else {
return None;
};