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

Allow uninstallation of mods while Incompatible filter is selected #2242

Merged
merged 1 commit into from
Jan 6, 2018

Conversation

HebaruSan
Copy link
Member

@HebaruSan HebaruSan commented Jan 5, 2018

Problem

  1. Install some mods
  2. Either upgrade your game or modify your compatible KSP versions so that some of the mods from step #1 become incompatible
  3. Change GUI filter to Incompatible
  4. Try to uninstall some of your incompatible mods. The apply changes button does not become enabled.

Note that this is not an architectural limitation of Core; if you use the All filter instead, you can uninstall incompatible mods.

Changes

There was an explicit check for the Incompatible filter in ModList_CellValueChanged, presumably to prevent the user from installing incompatible mods. However, such mods won't have checkboxes anyway. This check is removed.

Also added a few null checks to the function to be on the safe side.

Fixes #1842.
Replaces #1929, which was reverted in #2150 due to issues like #2148.
Re-tested #2148 with this change applied, and it worked for me. See my comment on that issue for my ideas about what caused it.

@HebaruSan HebaruSan changed the title Allow uninstallation of incompatible mods Allow uninstallation of mods while Incompatible filter is selected Jan 5, 2018
@HebaruSan HebaruSan added GUI Issues affecting the interactive GUI Bug Something is not working as intended labels Jan 5, 2018
@politas politas merged commit eec6dd2 into KSP-CKAN:master Jan 6, 2018
politas added a commit that referenced this pull request Jan 6, 2018
@politas politas removed Bug Something is not working as intended Pull request labels Jan 6, 2018
@HebaruSan HebaruSan deleted the fix/uninstall-incompatible branch January 6, 2018 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Issues affecting the interactive GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants