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

Enable/Disable whole mod group(s) by selected mod(s) #153

Closed Adda0 closed 8 months ago

Adda0 commented 8 months ago

This PR adds a button to the right-click context menu to enable/disable a whole mod group based on the state of the selected mod.

If the selected mod is disabled, one can enable all mods in the group of the selected mod. If the selected mod is enabled, one can disable all the mods in the group.

This works for selecting multiple mods, even from different groups. This is especially useful when one filters on mods containing specific keyword or stored in a specific path (group name such as automation/mod1, automation/mod2, …) and wants to enable all such mods in one go.

The mod needs to be merged after #148, otherwise the changes cannot be saved.

Tested on Linux, not tested on MacOS or Windows.

Adda0 commented 8 months ago

Rebased on the newest development branch with manual saving changes.

I added support for showing button to save profile on bulk mod status change and on whole mod group status change.

Example: 2024-01-08_18-44 2024-01-08_18-44_1

Floogen commented 8 months ago

I adjusted the ChangeWholeModGroupStateText menu item to be nested when mod grouping is enabled. I am open to feedback if the Enable / Disable text (for the parent option, when mod groups are enabled) should be changed to something else.

If it looks good to you, I will merge it over.

Adda0 commented 8 months ago

I actually really like the workflow of the nested options to enable/disable mods now. It works surprisingly well for me. I think the dynamically named parent option makes sense, too. I would keep the name as it is. Therefore, I consider this PR to be ready for merge.

Floogen commented 8 months ago

Merged!

Thank you for the pull request!