Skip to content

Commit

Permalink
fix lua error Init.lua:833
Browse files Browse the repository at this point in the history
  • Loading branch information
bkader committed Jan 24, 2023
1 parent e7f2b69 commit a9dadd3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Skada/Core/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ function Skada:SetTooltipPosition(tooltip, frame, display, win)
else
tooltip:SetPoint("TOPRIGHT", frame, "TOPLEFT")
end
else
elseif frame then
local anchor = strfind(P.tooltippos, "top") and "TOP" or "BOTTOM"
anchor = format("%s%s", anchor, strfind(P.tooltippos, "left") and "RIGHT" or "LEFT")
tooltip:SetOwner(frame, "ANCHOR_NONE")
Expand Down Expand Up @@ -2332,6 +2332,13 @@ function Skada:OnEnable()
end

self:SetupStorage()

-- deprecated table structure.
if self.sets.version then
self.sets.sets, self.sets.version = nil, nil
self:Debug("Fixed deprecated table structure!")
end

Private.ReloadSettings()
self:ScheduleTimer("CheckMemory", 3)
self:ScheduleTimer("CleanGarbage", 4)
Expand Down
2 changes: 1 addition & 1 deletion Skada/Skada.toc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
## DefaultState: enabled
## Author: Kader (|cff808080bkader#5341|r)
## Version: 1.8.84
## X-Date: 2023-01-22 @ 20:46 |cff808080UTC|r
## X-Date: 2023-01-24 @ 01:12 |cff808080UTC|r
## X-Credits: Zarnivoop
## X-Curse-Project-ID: 623633
## X-Category: Combat
Expand Down

0 comments on commit a9dadd3

Please sign in to comment.