Various fixes and improvements by popara96 · Pull Request #582 · GlitchEnzo/NuGetForUnity (original) (raw)

I apologize upfront for a bit larger PR. Wanted to fix a couple of small things but one thing led to another and we ended up with this. Basically the only 'larger' change here is how the Update tab works, and how the tab responsibilities are split, other than that it's really just minor fixes.

Changes introduced:

  1. Fixed refreshAssets propagation

We are now refreshing assets only for the topmost package when installing/updating packages. This will make sure that while installing or updating we refresh the assets only once. It also fixes one dependency being marked as explicit wrongly during installation. 2. ### Fixed update tab for V2 packages
Until now every version of the package newer than the version installed was shown as a separate package. This is now fixed by showing the dropdown selection list (similar to how V3 looks), with stacking Release Notes in the Details section showing release notes for every newer version in descending order. 3. ### Cleaner tab responsibilities
Every tab now has a separate reponsibility depending on what it should do:

  1. Fixed finding best framework group dependencies

Small fix that caches the framework group after we first find it, this also fixes logging the best target framework group every time we expand Details on a package.