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

Show correct error messages after canceling (un)installations/upgrades #2602

Merged
merged 3 commits into from
Dec 15, 2018

Conversation

DasSkelett
Copy link
Member

@DasSkelett DasSkelett commented Dec 5, 2018

Problem

If you cancel the installation/uninstall/update process after it's already complete, but before the Cancel button is greyed out you still get the "Error!" message and the Apply changes button is still active.
grafik
(Ignore the location of the Retry button atm, this seems to be another bug)

This is due to the entire GUI PostInstallMods() function only checking for e.Result.Key wich is set to false if the installation is canceled, despite the real result possibly being successful. This leads to those false error messages and GUI behavior.

Solution

e.Result.Key is now set to the value of processSuccesful (if you know a better name, let me know!). PostInstallMods now also distinguishes the "installCanceled but positive processSuccesful case.
The corresponding messages and GUI actions are now handled by a new FailWaitDialog() in MainWait.cs.

Furthermore the GUI ModList gets updated and UpdateChangesDialog is called. This solves the Apply changes button falsely being active as well as "installed" checkboxes having the false state.

Also the now empty changes tab is hidden (as after normal, not canceled installation).
ckan_3
grafik

Redo of #2418

(un)installations/upgrades
* If user cancels install, now CKAN checks if the process completed nevertheless and accordingly prints the message in log/status bar.
* Also deactivates Apply Changes button and Retry button in too late cancellations.
* Also stays on log tab after cancellation
* KNOWN ISSUE: Retry button not working - not sure if introduced with this commit
@HebaruSan HebaruSan added Bug GUI Issues affecting the interactive GUI Pull request labels Dec 5, 2018
GUI/MainInstall.cs Outdated Show resolved Hide resolved
for success tracking, instead a new processSuccessful bool
@DasSkelett DasSkelett changed the title Show correct error messages after cancelling (un)installations/upgrades Show correct error messages after canceling (un)installations/upgrades Dec 7, 2018
@politas
Copy link
Member

politas commented Dec 14, 2018

@DasSkelett , can you fix the conflict on this with #2599?

@DasSkelett
Copy link
Member Author

Done 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GUI Issues affecting the interactive GUI Pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants