diff options
author | SmallJoker <mk939@ymail.com> | 2022-01-19 18:52:27 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2022-01-19 18:52:27 +0100 |
commit | 7c321ad7f52eeefcd249f4268a2bf18ec12058cd (patch) | |
tree | 3b8c53d9f2ca808df686f44592f1d3d5fcb1d06b /builtin/mainmenu/pkgmgr.lua | |
parent | 42839fa1db85ab6ce61c5a185f91919a5a9c067c (diff) | |
download | minetest-7c321ad7f52eeefcd249f4268a2bf18ec12058cd.tar.gz minetest-7c321ad7f52eeefcd249f4268a2bf18ec12058cd.tar.bz2 minetest-7c321ad7f52eeefcd249f4268a2bf18ec12058cd.zip |
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
Diffstat (limited to 'builtin/mainmenu/pkgmgr.lua')
-rw-r--r-- | builtin/mainmenu/pkgmgr.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 |