mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
compiler: Move embedded_file_resources from the root Component to the Document
This commit is contained in:
parent
41d39c507f
commit
2fd8744cfc
15 changed files with 68 additions and 86 deletions
|
@ -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)| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue