KSP-CKAN / CKAN

The Comprehensive Kerbal Archive Network
https://forum.kerbalspaceprogram.com/index.php?/topic/197082-*
Other
1.99k stars 348 forks source link

Allow installs and removals to be cancelled #4253

Closed HebaruSan closed 2 weeks ago

HebaruSan commented 2 weeks ago

Problem

The GUI progress screen has a Cancel button, but it only works while a download is in progress. If you try to cancel after the downloads are finished but installation is still in progress, the button disables itself and nothing else happens.

Cause

The downloaders have their own custom CancelDownload methods, but the ModuleInstaller has nothing equivalent.

Changes

This allows the Cancel button to work regardless of which step is currently in progress.