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

Confirm quit with pending change set or conflicts #2599

Merged
merged 1 commit into from
Dec 12, 2018

Conversation

HebaruSan
Copy link
Member

@HebaruSan HebaruSan commented Dec 4, 2018

Motivation

If you open a typical application, make changes, and then quit without saving, you're prompted to confirm that you really want to quit. This is done to prevent the user from losing work and having to re-do it if they click the quit button accidentally.

image

If you open CKAN, select mods to install or uninstall, and then quit without applying changes, it just closes.

Changes

Now if you select changes and try to quit, you get one of three prompts depending on whether there are conflicts or unmet dependencies. Clicking Yes closes CKAN, while clicking No closes the dialog and leaves CKAN running.

image
image
image

To avoid prompting unnecessarily after a successful installation, we now clear the change set after a successful installation. Previously we were leaving the change set intact (in the Main.ChangeSet variable) but hiding the change set tab and disabling the apply changes button, which ordinarily are side effects of clearing the change set. This put the application into a bit of an inconsistent state which clearing the change set avoids.

@HebaruSan HebaruSan added Enhancement New features or functionality GUI Issues affecting the interactive GUI Pull request labels Dec 4, 2018
@politas politas merged commit 5eca908 into KSP-CKAN:master Dec 12, 2018
@HebaruSan HebaruSan deleted the feature/quit-prompts branch December 12, 2018 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New features or functionality GUI Issues affecting the interactive GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants