Skip to content

Commit

Permalink
Fixed a small stutter when hovering over the segments menu after doin…
Browse files Browse the repository at this point in the history
…g some mythic+ dungeons
  • Loading branch information
Tercioo committed Dec 22, 2022
1 parent 6097863 commit eef2d19
Show file tree
Hide file tree
Showing 6 changed files with 329 additions and 107 deletions.
3 changes: 2 additions & 1 deletion boot.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--global name declaration

--local _StartDebugTime = debugprofilestop() print(debugprofilestop() - _StartDebugTime)
_ = nil
_G._detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
local addonName, Details222 = ...
Expand Down Expand Up @@ -71,6 +71,7 @@
--namespace for pet
Details222.Pets = {}
Details222.MythicPlus = {}
Details222.EJCache = {}

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--initialization stuff
Expand Down
4 changes: 2 additions & 2 deletions core/gears.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1610,8 +1610,8 @@ function Details.Database.StoreEncounter(combat)
return
end

local boss_info = combat:GetBossInfo()
local encounter_id = boss_info and boss_info.id
local encounterInfo = combat:GetBossInfo()
local encounter_id = encounterInfo and encounterInfo.id

if (not encounter_id) then
if (_detalhes.debug) then
Expand Down
2 changes: 1 addition & 1 deletion frames/window_cdtracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ end
if (spellIcon) then
cooldownFrame:SetIcon(spellIcon, .1, .9, .1, .9)

local classColor = C_ClassColor.GetClassColor(cooldownFrame.class)
local classColor = C_ClassColor.GetClassColor(cooldownFrame.class or "PRIEST")
cooldownFrame:SetStatusBarColor(classColor.r, classColor.g, classColor.b)
cooldownFrame:SetLeftText(DF:RemoveRealmName(cooldownFrame.unitName))
cooldownFrame:SetSize(Details.ocd_tracker.width, Details.ocd_tracker.height)
Expand Down
Loading

0 comments on commit eef2d19

Please sign in to comment.