Skip to content

Commit 0be5c79

Browse files
committed
fix: handle 12.0 deprecations
1 parent 98337b4 commit 0be5c79

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## v11.2.6
2+
13
## v11.2.5
24
* New condition: Armor Repair Level - Checks the lowest durability percentage of any equipped gear.
35
* Meta Icons and Icon Shown conditions now use pure event-driven updates. This is made possible by dynamic, dependency-aware ordering of icon update checks. If you have circular dependencies between icons, you may find that some updates may be delayed by at least one update interval.

Components/Core/Common/Actions.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ local select, wipe, setmetatable
2222
= select, wipe, setmetatable
2323

2424
local GetSpellName = TMW.GetSpellName
25+
local FindBaseSpellByID = C_SpellBook and C_SpellBook.FindBaseSpellByID or _G.FindBaseSpellByID
2526

2627
TMW.COMMON.Actions = CreateFrame("Frame")
2728
local Actions = TMW.COMMON.Actions

Components/IconModules/IconModule_IconEditorLoader/module.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ Module:SetScriptHandler("OnMouseUp", function(Module, icon, button)
126126
local GUID = icon:GetGUID()
127127
local link = format("|H%s|h%s|h", GUID, GUID)
128128

129-
local inserted = ChatEdit_InsertLink(link)
129+
local insert = ChatFrameUtil and ChatFrameUtil.InsertLink or ChatEdit_InsertLink
130+
131+
local inserted = insert(link)
130132

131133
-- If the insertion was successful, make the GUID permanant.
132134
icon:GetGUID(1)

Options/CHANGELOG.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ if not TMW then return end
33
TMW.CHANGELOG_LASTVER="10.0.0"
44

55
TMW.CHANGELOG = [==[
6+
## v11.2.6
7+
68
## v11.2.5
79
* New condition: Armor Repair Level - Checks the lowest durability percentage of any equipped gear.
810
* Meta Icons and Icon Shown conditions now use pure event-driven updates. This is made possible by dynamic, dependency-aware ordering of icon update checks. If you have circular dependencies between icons, you may find that some updates may be delayed by at least one update interval.

Options/TellMeWhen_Options.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,11 @@ local function hook_ChatEdit_InsertLink(text)
198198
return false
199199
end
200200

201-
hooksecurefunc("ChatEdit_InsertLink", function(...)
202-
TMW.safecall(hook_ChatEdit_InsertLink, ...)
203-
end)
204-
201+
if ChatFrameUtil and ChatFrameUtil.InsertLink then
202+
hooksecurefunc(ChatFrameUtil, "InsertLink", function(...) TMW.safecall(hook_ChatEdit_InsertLink, ...) end)
203+
elseif ChatEdit_InsertLink then
204+
hooksecurefunc("ChatEdit_InsertLink", function(...) TMW.safecall(hook_ChatEdit_InsertLink, ...) end)
205+
end
205206

206207

207208

TellMeWhen-Vanilla.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
## X-WoWI-ID: 10855
1919
## X-Wago-ID: ZQ6aZqKW
2020

21-
## Version: 11.2.5
21+
## Version: 11.2.6
2222
## Author: Cybeloras of Aerie Peak
2323
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
2424
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick

TellMeWhen.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2849,7 +2849,7 @@ function TMW:UpdateTalentTextureCache()
28492849
end
28502850
end
28512851
end
2852-
elseif MAX_TALENT_TIERS then
2852+
elseif MAX_TALENT_TIERS and NUM_TALENT_COLUMNS and GetTalentInfo then
28532853
for tier = 1, MAX_TALENT_TIERS do
28542854
for column = 1, NUM_TALENT_COLUMNS do
28552855
local id, name, tex = GetTalentInfo(tier, column, 1)

TellMeWhen.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
## X-WoWI-ID: 10855
1919
## X-Wago-ID: ZQ6aZqKW
2020

21-
## Version: 11.2.5
21+
## Version: 11.2.6
2222
## Author: Cybeloras of Aerie Peak
2323
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
2424
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick

0 commit comments

Comments
 (0)