Fixed settings game command default value in environment settings

This commit is contained in:
Observer KRypt0n_ 2022-08-03 12:22:40 +02:00
parent c3a6cf37de
commit bbedc288fe
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -230,6 +230,10 @@ impl App {
status_page.set_description(Some("Loading environment..."));
// Set game command
self.widgets.command.set_text(&config.game.command.unwrap_or(String::new()));
// Add environment variables
for (name, value) in config.game.environment {
self.update(Actions::Add(Rc::new((name, value)))).unwrap();
}