From bbedc288fedffe0f5aed47861d8233f2b422e2aa Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Wed, 3 Aug 2022 12:22:40 +0200 Subject: [PATCH] Fixed settings game command default value in environment settings --- src/ui/preferences/environment.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/preferences/environment.rs b/src/ui/preferences/environment.rs index 23f699c..828c287 100644 --- a/src/ui/preferences/environment.rs +++ b/src/ui/preferences/environment.rs @@ -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(); }