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

KSP Installation list loses currently invalid installs when adding a new installation #1859

Closed
politas opened this issue Aug 6, 2016 · 7 comments
Assignees
Labels
Core (ckan.dll) Issues affecting the core part of CKAN

Comments

@politas
Copy link
Member

politas commented Aug 6, 2016

Steps to reproduce
Add a KSP installation "install1"
Move KSP installation "install1" to a different location
Add KSP installation "install2"
Return KSP installation "install1" to its former location

install1 will not be selectable on starting CKAN

@politas politas added Bug Something is not working as intended Core (ckan.dll) Issues affecting the core part of CKAN ★☆☆ labels Aug 6, 2016
@politas
Copy link
Member Author

politas commented Sep 4, 2016

See also related #1836

@ayan4m1 ayan4m1 self-assigned this Sep 10, 2016
@ayan4m1
Copy link
Contributor

ayan4m1 commented Oct 26, 2016

This is intentional as far as the source is concerned: https://github.com/KSP-CKAN/CKAN/blob/master/Core/KSPManager.cs#L290

The KSP ctor throws an exception if the install isn't valid:

if (!IsKspDir(gameDir))
{
throw new NotKSPDirKraken(gameDir);
}

Any ideas on how you want that all to work?

@politas
Copy link
Member Author

politas commented Oct 26, 2016

Ideally, unavailable instances would show up in the KSP Install list greyed out, so they can be removed (fixing #1836), and they won't then be forgotten when another instance is added (fixing this)

@ayan4m1
Copy link
Contributor

ayan4m1 commented Oct 26, 2016

Ah, makes sense - that is kinda more of an enhancement rather than a ckan.dll bug right?

@politas
Copy link
Member Author

politas commented Oct 28, 2016

I suppose you could call it an enhancement that solves two related bugs.

@ayan4m1
Copy link
Contributor

ayan4m1 commented Nov 9, 2016

Gotcha, been working on the more comprehensive solution over the past few days.

@politas
Copy link
Member Author

politas commented Nov 23, 2016

@ayan4m1 , while you're working on this bit of code, we've had a feature request on the forums to maintain the "default" KSP version when selecting a non-default install. We would then need to add a button to clear the current default. Does that seem simple enough to implement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core (ckan.dll) Issues affecting the core part of CKAN
Projects
None yet
Development

No branches or pull requests

3 participants