mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Don't load document twice if they are imported twice
Also protect against cyclic imports
This commit is contained in:
parent
a4b476bdf3
commit
2d55b2a51a
5 changed files with 123 additions and 38 deletions
|
@ -95,7 +95,7 @@ pub fn compile_syntax_node(
|
|||
Cow::from("ugly")
|
||||
});
|
||||
|
||||
let mut all_docs = vec![];
|
||||
let mut all_docs = typeloader::LoadedDocuments::default();
|
||||
if doc_node.source_file.is_some() {
|
||||
typeloader::load_dependencies_recursively(
|
||||
&doc_node,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue