Skip to content

Commit

Permalink
Main menu: Fix automatic dependency enables on doubleclick
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SmallJoker committed Jan 19, 2022
1 parent 42839fa commit 7c321ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/mainmenu/pkgmgr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c321ad

Please sign in to comment.