mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
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:
parent
af977e4590
commit
7d255a1a18
3 changed files with 8 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue