From 7c321ad7f52eeefcd249f4268a2bf18ec12058cd Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Wed, 19 Jan 2022 18:52:27 +0100 Subject: [PATCH] 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 --- builtin/mainmenu/pkgmgr.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua index e83a93c91..6de671529 100644 --- a/builtin/mainmenu/pkgmgr.lua +++ b/builtin/mainmenu/pkgmgr.lua @@ -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