Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: ♻️ reworked disabling mods via user profile #297

Conversation

KANAjetzt
Copy link
Member

@KANAjetzt KANAjetzt commented Jun 23, 2023

  • Added is_active property to ModData.
  • Removed the section in _update_mod_list() that enables mods that are in ModLoaderStore.mod_data
    (previously disabled mods did not end up in ModLoaderStore.mod_data).

Breaking Change:
With the recent update, mods are now always unpacked and loaded into ModLoaderStore.mod_data. This change can potentially break Mod Lists that rely on having only loaded mods in mod_data. Consequently, these Mod Lists may display mods that are currently not loaded. To address this issue, authors of Mod Lists need to adapt their code to check the new is_active flag for each mod.



closes #286

@KANAjetzt KANAjetzt added the refactor / cleanup Improves readability or maintainability label Jun 23, 2023
@KANAjetzt KANAjetzt added this to the v6.0.1 milestone Jun 23, 2023
@KANAjetzt KANAjetzt self-assigned this Jun 23, 2023
@KANAjetzt KANAjetzt force-pushed the refactor_user_profile_disable_mod branch from c587953 to 820fbd2 Compare June 24, 2023 08:43
@KANAjetzt KANAjetzt requested review from ithinkandicode, Qubus0, otDan and a team June 24, 2023 09:10
@KANAjetzt KANAjetzt added bug Something isn't working breaking Breaking change labels Jun 24, 2023
@KANAjetzt KANAjetzt added this pull request to the merge queue Jun 26, 2023
Merged via the queue into GodotModding:development with commit 21dea2a Jun 26, 2023
@KANAjetzt KANAjetzt deleted the refactor_user_profile_disable_mod branch July 3, 2023 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change bug Something isn't working refactor / cleanup Improves readability or maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants