Use correct app name in application title

This commit is contained in:
James 2018-01-27 15:33:15 +11:00
parent dffd498c3d
commit a1301ae915

View File

@ -33,6 +33,8 @@ static RAW_CONFIG : &'static str = include_str!("../config.toml");
fn main() { fn main() {
let config = Config::from_toml_str(RAW_CONFIG).unwrap(); let config = Config::from_toml_str(RAW_CONFIG).unwrap();
let app_name = config.general.name.clone();
let framework = InstallerFramework::new(config); let framework = InstallerFramework::new(config);
let server = WebServer::new(framework).unwrap(); let server = WebServer::new(framework).unwrap();
@ -51,7 +53,7 @@ fn main() {
let userdata = (); let userdata = ();
run( run(
"yuzu Installer", &format!("{} Installer", app_name),
&http_address, &http_address,
Some(size), Some(size),
resizable, resizable,