Skip to content

Conversation

Vidi0
Copy link
Contributor

@Vidi0 Vidi0 commented Jul 16, 2025

If a wine version was removed, the versionInfo.installDir variable was set to empty instead of undefined, so trying to install it again would fail while creating the folder. Fix that by checking if versionInfo is undefined OR empty. Now removing and installing the same wine version without closing and opening again heroic works as expected.


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

If a wine version was removed, the versionInfo.installDir variable was set to '' instead of undefined,
so trying to install it again would fail while creating the folder. Fix that by checking if versionInfo
is undefined OR ''.
Copy link
Contributor

@veryprofessionaldodo veryprofessionaldodo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be simplified a bit more

@Vidi0
Copy link
Contributor Author

Vidi0 commented Jul 16, 2025

Simplified as requested

@flavioislima flavioislima requested review from a team, arielj, flavioislima, CommandMC, Etaash-mathamsetty, biliesilva, Nocccer and imLinguin and removed request for a team July 17, 2025 11:38
@flavioislima flavioislima added the pr:ready-for-review Feature-complete, ready for the grind! :P label Jul 17, 2025
Copy link
Collaborator

@arielj arielj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! I can confirm the issue before and how it's fixed with this change

@arielj arielj merged commit f2632b2 into Heroic-Games-Launcher:main Jul 28, 2025
9 checks passed
@Heroic-Games-Launcher Heroic-Games-Launcher locked and limited conversation to collaborators Jul 28, 2025
@Vidi0 Vidi0 deleted the fix-wine-reinstall branch July 28, 2025 08:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants