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 .install
.lua/* .lua/*
.vscode .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:SetMultiselect(true)
dropdown:SetCallback("OnValueChanged", function(_, _, profession, value) dropdown:SetCallback("OnValueChanged", function(_, _, profession, value)
private.gather.professions[profession] = value or nil 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) end)
frame.professionDropdown = dropdown frame.professionDropdown = dropdown

Loading…
Cancel
Save