turtle-wow: only apply changes to available skins

This commit is contained in:
shagu
2024-11-06 13:21:10 +01:00
parent 5cd6475e16
commit b629c3e7d3
+2 -2
View File
@@ -80,7 +80,7 @@ pfUI:RegisterModule("turtle-wow", "vanilla", function ()
-- skin title dropdown menu
-- taken from: https://github.com/doorknob6/pfUI-turtle/blob/master/skins/turtle/character.lua
if TWTitles and pfUI_config["disabled"]["skin_Character"] ~= "1" then
if TWTitles and pfUI.skin["Character"] and pfUI_config["disabled"]["skin_Character"] ~= "1" then
CharacterLevelText:SetPoint("TOP", CharacterNameText, "BOTTOM", 0, -2)
SkinDropDown(TWTitles)
TWTitles:SetPoint("TOP", CharacterGuildText, "BOTTOM", 0, -2)
@@ -91,7 +91,7 @@ pfUI:RegisterModule("turtle-wow", "vanilla", function ()
-- rearrange twow's profession window additions
HookAddonOrVariable("Blizzard_TradeSkillUI", function()
if TradeSkillSkillCheckButton and pfUI_config["disabled"]["skin_Profession"] ~= "1" then
if TradeSkillSkillCheckButton and pfUI.skin["Profession"] and pfUI_config["disabled"]["skin_Profession"] ~= "1" then
SkinCheckbox(TradeSkillSkillCheckButton)
TradeSkillSkillCheckButton:SetWidth(24)
TradeSkillSkillCheckButton:SetHeight(24)