feat: hide tooltip extension checkbox in settings
This commit is contained in:
@@ -46,12 +46,16 @@ function DB:Initialize()
|
||||
hideFooter = false,
|
||||
bgTransparency = 0.15,
|
||||
showTrackedItems = true,
|
||||
showTooltipCounts = true,
|
||||
trackedItems = {},
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
-- Ensure new settings exist for existing installations
|
||||
if Guda_CharDB.settings.showTooltipCounts == nil then
|
||||
Guda_CharDB.settings.showTooltipCounts = true
|
||||
end
|
||||
if Guda_CharDB.settings.bgTransparency == nil then
|
||||
if Guda_CharDB.settings.frameOpacity ~= nil then
|
||||
Guda_CharDB.settings.bgTransparency = 1.0 - Guda_CharDB.settings.frameOpacity
|
||||
|
||||
@@ -165,6 +165,11 @@ local function GetClassColor(classToken)
|
||||
end
|
||||
|
||||
function Tooltip:AddInventoryInfo(tooltip, link)
|
||||
-- Check if the setting is enabled
|
||||
if not addon.Modules.DB:GetSetting("showTooltipCounts") then
|
||||
return
|
||||
end
|
||||
|
||||
-- Check if database is properly initialized and has the expected structure
|
||||
if not Guda_DB or type(Guda_DB) ~= "table" then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user