fix: fixed downloaded wine version selection on "download wine" button

Instead it was selecting wine group name by mistake
This commit is contained in:
Observer KRypt0n_ 2023-03-19 15:44:40 +02:00
parent 57dce12d0d
commit fcab428cb4
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -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,