Main menu: Fix automatic dependency enables on doubleclick

When mods were toggled by double-click, the hard dependencies were no longer enabled automatically.
However, the 'Enabled' checkbox did still work. This commit restores the behaviour as seen before commit c401a06
master
SmallJoker 2022-01-19 18:52:27 +01:00
parent 42839fa1db
commit 7c321ad7f5
1 changed files with 1 additions and 0 deletions

View File

@ -435,6 +435,7 @@ function pkgmgr.enable_mod(this, toset)
local toggled_mods = {}
local enabled_mods = {}
toggle_mod_or_modpack(list, toggled_mods, enabled_mods, toset, mod)
toset = mod.enabled -- Update if toggled
if not toset then
-- Mod(s) were disabled, so no dependencies need to be enabled