Skip to content

Commit

Permalink
2.2.2
Browse files Browse the repository at this point in the history
Fix errors with internal function for some users
  • Loading branch information
Noshei committed Sep 15, 2024
1 parent 9e78f95 commit 2a14a83
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ local generalOptions = {
name = "Debug",
desc = "This is for debugging the addon, do NOT enable, it is spammy.",
width = 1.70,
values = { [0] = "Off", [1] = "Limited", [2] = "Info", [3] = "Debug", [4] = "Trace (Very Spammy)" },
values = { [0] = "Off", [1] = "Limited", [2] = "Info", [3] = "Debug", [4] = "Trace (Very Spammy)", [5] = "Notification Spam" },
get = function()
if type(GT.db.profile.General.debugOption) == "boolean" then
GT.db.profile.General.debugOption = 0
Expand Down
8 changes: 8 additions & 0 deletions GatheringTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ function GT:SetAnchor(frame)
end

function GT:AllignRows()
if not GT.Display.Order then
return
end
for i, id in ipairs(GT.Display.Order) do
if i == 1 then
GT.Display.Frames[id]:SetPoint("TOPLEFT", GT.baseFrame.backdrop, "TOPLEFT")
Expand All @@ -410,6 +413,9 @@ function GT:AllignRows()
end

function GT:AllignColumns()
if not GT.Display.Order then
return
end
for i, id in ipairs(GT.Display.Order) do
for index, string in ipairs(GT.Display.Frames[id].text) do
string:SetWidth(GT.Display.ColumnSize[index])
Expand Down Expand Up @@ -877,6 +883,7 @@ function GT:ProcessSoloData(event)
end

if event and (event == "InventoryUpdate" or event == "BAG_UPDATE") and itemCount > 0 then
GT.Debug("Trigger Notification Handler for each", 5)
GT.NotificationPause = false
GT:NotificationHandler("each", id, itemCount)
end
Expand Down Expand Up @@ -910,6 +917,7 @@ function GT:CreateDataMessage(event)
end

if event and (event == "InventoryUpdate" or event == "BAG_UPDATE") then
GT.Debug("Trigger Notification Handler for each", 5)
GT.NotificationPause = false
GT:NotificationHandler("each", id, itemCount)
end
Expand Down
2 changes: 1 addition & 1 deletion GatheringTracker.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Gathering Tracker
## Notes: Addon for tracking gathered items, supports solo players and groups
## Author: Noshei
## Version: 2.2.1
## Version: 2.2.2
## OptionalDeps: TradeSkillMaster
## SavedVariables: GatheringTrackerDB
## AddonCompartmentFunc: GatheringTracker_OnAddonCompartmentClick
Expand Down
1 change: 1 addition & 0 deletions NotificationHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local GT = LibStub("AceAddon-3.0"):GetAddon("GatheringTracker")
local media = LibStub:GetLibrary("LibSharedMedia-3.0")

function GT:NotificationHandler(mode, id, amount, value)
GT.Debug("Notifications Handler", 5, mode, id, amount, value)

local NotificationTriggered = false

Expand Down
2 changes: 2 additions & 0 deletions Utilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ function GT.Debug(text, level, ...)
color = "FF8080" --#FF8080
elseif level == 4 then
color = "E300DB" --#E300DB
elseif level == 5 then
color = "3990FA" --#3990FA
end
ChatFrame1:AddMessage(
"|cffff6f00" --#ff6f00
Expand Down

0 comments on commit 2a14a83

Please sign in to comment.