Skip to content

Conversation

anttimaki
Copy link
Collaborator

If importing a profile fails while copying files, the resulting profile is unlikely to be what the user expects it to be, so delete the profile folder. The process can't be resumed, so any retry will do all the work (besides downloading the mods) again anyway.

When creating a new profile, it's the newly created profile folder. When updating an existing profile, it's the temporary work folder.

On the UI/state management side, we need to check if the profile exists or not, and update the profile list accordingly.

If importing a profile fails while copying files, the resulting profile
is unlikely to be what the user expects it to be, so delete the profile
folder. The process can't be resumed, so any retry will do all the work
(besides downloading the mods) again anyway.

When creating a new profile, it's the newly created profile folder.
When updating an existing profile, it's the temporary work folder.

On the UI/state management side, we need to check if the profile
exists or not, and update the profile list accordingly.
Base automatically changed from profile-import-performance to develop October 16, 2024 13:13
@anttimaki anttimaki merged commit 576d654 into develop Oct 16, 2024
5 checks passed
@anttimaki anttimaki deleted the profile-import-cleanup branch October 16, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants