compiler: Move embedded_file_resources from the root Component to the Document

This commit is contained in:
Olivier Goffart 2024-06-19 11:15:38 +02:00
parent 41d39c507f
commit 2fd8744cfc
15 changed files with 68 additions and 86 deletions

View file

@ -2794,8 +2794,7 @@ fn generate_resources(doc: &Document) -> Vec<TokenStream> {
let link_section =
std::env::var("SLINT_ASSET_SECTION").ok().map(|section| quote!(#[link_section = #section]));
doc.root_component
.embedded_file_resources
doc.embedded_file_resources
.borrow()
.iter()
.map(|(path, er)| {