diff --git a/Broker.lua b/Broker.lua index 4c7af31..85854b2 100644 --- a/Broker.lua +++ b/Broker.lua @@ -25,7 +25,9 @@ function GT:InitializeBroker() type = "launcher", icon = "Interface\\Addons\\GatheringTracker\\Media\\GT_Icon", OnClick = function(frame, button) - if button == "LeftButton" then + if button == "LeftButton" and IsShiftKeyDown() then + GT:ResetSession() + elseif button == "LeftButton" then GT:GenerateFiltersMenu(frame) elseif button == "RightButton" then Settings.OpenToCategory(GT.metaData.name, true) diff --git a/Config.lua b/Config.lua index 1b5ec91..04e758e 100644 --- a/Config.lua +++ b/Config.lua @@ -128,8 +128,10 @@ local generalOptions = { miniMap = { type = "toggle", name = "Minimap Button", - desc = "Enable this to show the minimap button.\nLeft Click shows filters menu.\n" .. - "Right Click opens the addon options.", + desc = "Enable this to show the minimap button.\n" .. + "Left Click shows filters menu.\n" .. + "Right Click opens the addon options.\n" .. + "Shift + Left Click resets Session Data.", width = 1.70, get = function() return not GT.db.profile.miniMap.hide end, set = function(_, key) @@ -146,7 +148,9 @@ local generalOptions = { filtersButton = { type = "toggle", name = "Filters Button", - desc = "Left Click shows filters menu.\nRight Click clears all filters.", + desc = "Left Click shows filters menu.\n" .. + "Right Click clears all filters.\n" .. + "Shift + Left Click resets Session Data.", width = 1.70, get = function() return GT.db.profile.General.filtersButton end, set = function(_, key) diff --git a/FilterButton.lua b/FilterButton.lua index 4769061..bdac481 100644 --- a/FilterButton.lua +++ b/FilterButton.lua @@ -66,7 +66,9 @@ function GT:FiltersButton(profileChanged) filterButton:Show() filterButton:SetScript("OnClick", function(self, button, down) - if button == "LeftButton" then + if button == "LeftButton" and IsShiftKeyDown() then + GT:ResetSession() + elseif button == "LeftButton" then GT:GenerateFiltersMenu(self) elseif button == "RightButton" then GT:ClearFilters() diff --git a/GatheringTracker.lua b/GatheringTracker.lua index a572ee0..92bdd68 100644 --- a/GatheringTracker.lua +++ b/GatheringTracker.lua @@ -872,7 +872,7 @@ function GT:InventoryUpdate(event, wait) end function GT:ProcessSoloData(event) - GT.Debug("ProcessSoloData", 2, event) + GT.Debug("ProcessSoloData", 1, event) local itemTable = {} for index, id in ipairs(GT.IDs) do @@ -915,7 +915,7 @@ end ---@param event any calling function ---@param wait any if true we will wait a bit to avoid issues function GT:CreateDataMessage(event, wait) - GT.Debug("CreateDataMessage", 2, event) + GT.Debug("CreateDataMessage", 1, event) if wait then GT:wait(0.1, "CreateDataMessage", "CreateDataMessage", false) return diff --git a/GatheringTracker.toc b/GatheringTracker.toc index 7740afc..c48cfda 100644 --- a/GatheringTracker.toc +++ b/GatheringTracker.toc @@ -2,7 +2,7 @@ ## Title: Gathering Tracker ## Notes: Addon for tracking gathered items, supports solo players and groups ## Author: Noshei -## Version: 2.6.6 +## Version: 2.6.7 ## OptionalDeps: TradeSkillMaster, RECrystallize, Auctionator ## SavedVariables: GatheringTrackerDB ## AddonCompartmentFunc: GatheringTracker_OnAddonCompartmentClick diff --git a/Utilities.lua b/Utilities.lua index 4b7efa1..8437171 100644 --- a/Utilities.lua +++ b/Utilities.lua @@ -173,6 +173,9 @@ function GT:IsInGroup() if C_LFGInfo.IsInLFGFollowerDungeon() == true then return false end + if select(3, GetInstanceInfo()) == 208 then + return false + end return IsInGroup() end