From fcab428cb40b1457f41e0856f9d1e1473acbe653 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Sun, 19 Mar 2023 15:44:40 +0200 Subject: [PATCH] fix: fixed downloaded wine version selection on "download wine" button Instead it was selecting wine group name by mistake --- src/ui/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/main.rs b/src/ui/main.rs index a2038e8..9370e20 100644 --- a/src/ui/main.rs +++ b/src/ui/main.rs @@ -1100,9 +1100,9 @@ impl SimpleComponent for App { Ok(downloaded) => { // Select downloaded version if !downloaded.is_empty() { - config.game.wine.selected = Some(downloaded[0].name.clone()); + config.game.wine.selected = Some(downloaded[0].versions[0].name.clone()); - config::update(config.clone()); + config::update(config); sender.input(AppMsg::UpdateLauncherState { perform_on_download_needed: false,