From b4ae27c57a537a9fc7ff33631efc2b6576c5ed3a Mon Sep 17 00:00:00 2001 From: soltanikian Date: Wed, 10 Dec 2025 21:36:56 +0100 Subject: [PATCH] Fix Profession Multiselect on Gathering window --- .gitignore | 4 +++- TradeSkillMaster_Crafting/Modules/CraftingGUI.lua | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 44356e3..95d5645 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ .install .lua/* .vscode -.idea \ No newline at end of file +.idea +deploy.bat +claude.md \ No newline at end of file diff --git a/TradeSkillMaster_Crafting/Modules/CraftingGUI.lua b/TradeSkillMaster_Crafting/Modules/CraftingGUI.lua index a6fa526..5711116 100644 --- a/TradeSkillMaster_Crafting/Modules/CraftingGUI.lua +++ b/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