mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
sixtyfps-macro: recompile when the style changes
This commit is contained in:
parent
e895e88e7f
commit
19458eb2e6
1 changed files with 4 additions and 1 deletions
|
@ -348,7 +348,10 @@ pub fn sixtyfps(stream: TokenStream) -> TokenStream {
|
|||
.filter(|path| path.is_absolute() && !path.ends_with("Cargo.toml"))
|
||||
.filter_map(|p| p.to_str())
|
||||
.map(|p| quote! {const _ : &'static [u8] = ::core::include_bytes!(#p);});
|
||||
result.as_mut().map(|x| x.extend(reload));
|
||||
result.as_mut().map(|x| {
|
||||
x.extend(reload);
|
||||
x.extend(quote! {const _ : Option<&'static str> = ::core::option_env!("SIXTYFPS_STYLE");});
|
||||
});
|
||||
|
||||
result
|
||||
.unwrap_or_else(|| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue