KSP-CKAN / CKAN

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

Cache migration and other fixes #4240

Closed HebaruSan closed 1 month ago

HebaruSan commented 1 month ago

Background

The core issue was that the settings dialog primarily uses a live-editing paradigm (check a checkbox and the setting is updated instantly), but the cache path needs an edit/cancel/accept paradigm where the user explicitly chooses to validate and commit the input when it's ready and can address any errors or further choices at that time.

Motivation / Initial Problems

Users want a file migration option.

Some related issues were also reported:

Causes

Problems

While working on the above, a few small things came up:

Causes

Changes

Fixes #4086.

HebaruSan commented 1 month ago

I need to test this in Windows before merging.

HebaruSan commented 1 month ago

Hi @gsf600y, there's a ckan.exe test build under the Artifacts dropdown here, if you'd like to take these changes for a spin:

https://github.com/KSP-CKAN/CKAN/pull/4240/checks

gsf600y commented 1 month ago

Thanks @HebaruSan ! Downloaded, tested, and appears to be working perfectly!

One question - what's the different to selecting "Revert back to old folder" and hitting the Cancel button?

HebaruSan commented 1 month ago

Cool, thanks for taking a look!

One question - what's the different to selecting "Revert back to old folder" and hitting the Cancel button?

They're the same. I added "Revert back to old folder" because I felt it would not necessarily be clear what the Cancel button did, and this makes it an explicit, visible option.

gsf600y commented 1 month ago

Ah I see, understood! I first thought "Revert" might flip back to the previous folder I was using, having stored that folder name somewhere. That's how I read "Revert" anyway, rather than "cancel" which I understand to be "don't do anything, get me out of this menu".