Floogen / Stardrop

Stardrop is an open-source, cross-platform mod manager for the game Stardew Valley.
https://floogen.gitbook.io/stardrop/
GNU General Public License v3.0
114 stars 31 forks source link

Add settings option to always ask to delete mod files on update #147

Closed Adda0 closed 8 months ago

Adda0 commented 8 months ago

This PR adds an option to disable the warning to always ask to delete previously installed mod files.

Deleting previously installed mod files is de-facto the standard for mod updates and should be preventively done all the time. Therefore, the user has an option to set this in the settings: They will never have to click Yes to all for another mod.

This PR pairs well with #146. There is a big difference between clicking one button to update all and updating 50 mods one by one with manually click Yes to all for all updated mods.

If you find this feature useful, translations for other languages needs to be added (for now just the English version copy-pasted everywhere). Tested on Linux, not tested on Windows and MacOS.

Floogen commented 8 months ago

It seems that my previous implementation of alwaysAskToDelete would result in the old mod not being deleted, if the AlwaysAskToDelete setting was disabled. This has now been fixed.

Thank you for the pull request!