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

Don't show status progress bar till actually installing #2560

Merged
merged 1 commit into from
Nov 4, 2018

Conversation

HebaruSan
Copy link
Member

Problem

If you choose to install a mod that has recommendations or suggestions, the status-bar progress bar will appear while the recommendation and suggestion lists are visible.

image

If you then cancel out of these screens, that progress bar will remain visible on the main mod list, effectively stuck there until you start and complete another installation.

image

Cause

This progress bar is shown and hidden in the ShowWaitDialog and HideWaitDialog functions that initialize and reset the log tab and its progress bar, respectively.

ShowWaitDialog is called too early in the install process, before recommendations and suggestions are handled. We don't need it yet at that point, so the tab sits uselessly in the background while the user deals with recommendations and suggestions, and the status bar shows a progress bar when it shouldn't.

Changes

Now we don't call ShowWaitDialog until after recommendations and suggestions are handled, when we're ready to do the actual installation. This will leave the progress bar hidden until it's needed. It also simplifies the clean-up a bit when the user cancels.

Fixes #2417.
Closes #2418. (Addressing the same issue, somewhat more complexly, but now has conflicts with master and hard to tell what the changes were.)

@HebaruSan HebaruSan added Bug Something is not working as intended GUI Issues affecting the interactive GUI Pull request labels Nov 1, 2018
@Olympic1 Olympic1 merged commit fb968ff into KSP-CKAN:master Nov 4, 2018
@HebaruSan HebaruSan deleted the fix/early-status-progress branch November 4, 2018 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working as intended GUI Issues affecting the interactive GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants