Browse Source

Fix Profession Multiselect on Gathering window

pull/27/head
soltanikian 5 months ago
parent
commit
b4ae27c57a
  1. 4
      .gitignore
  2. 7
      TradeSkillMaster_Crafting/Modules/CraftingGUI.lua

4
.gitignore vendored

@ -4,4 +4,6 @@
.install
.lua/*
.vscode
.idea
.idea
deploy.bat
claude.md

7
TradeSkillMaster_Crafting/Modules/CraftingGUI.lua

@ -2041,7 +2041,12 @@ function GUI:CreateGatheringSelectionFrame(parent)
dropdown:SetMultiselect(true)
dropdown:SetCallback("OnValueChanged", function(_, _, profession, value)
private.gather.professions[profession] = value or nil
GUI:UpdateGatherSelectionWindow()
-- Only update the button state, don't rebuild the dropdown list
if next(private.gather.professions) then
frame.gatherButton:Enable()
else
frame.gatherButton:Disable()
end
end)
frame.professionDropdown = dropdown

Loading…
Cancel
Save