Rename SIXTYFPS_EMBED_RESOURCES environment variable

This commit is contained in:
Simon Hausmann 2022-02-02 09:10:52 +01:00
parent 017da5b3b4
commit 7382ea1f2c
3 changed files with 4 additions and 4 deletions

View file

@ -74,10 +74,10 @@ pub struct CompilerConfiguration {
impl CompilerConfiguration {
pub fn new(output_format: crate::generator::OutputFormat) -> Self {
let embed_resources = match std::env::var("SIXTYFPS_EMBED_RESOURCES") {
let embed_resources = match std::env::var("SLINT_EMBED_RESOURCES") {
Ok(var) => {
var.parse().unwrap_or_else(|_|{
panic!("SIXTYFPS_EMBED_RESOURCES has incorrect value. Must be either unset, 'true' or 'false'")
panic!("SLINT_EMBED_RESOURCES has incorrect value. Must be either unset, 'true' or 'false'")
})
}
Err(_) => {