Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
DengSir committed Sep 7, 2024
1 parent c4c9e60 commit 933e1fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Addon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function Addon:TDINSPECT_OPTION_CHANGED(_, key, value)
self.CharacterGearFrame:Hide()
end
end
elseif key == 'inspectGear' then
elseif key == 'inspectGear' and InspectPaperDollFrame then
if value then
if InspectPaperDollFrame:IsShown() then
self:OpenInspectGearFrame()
Expand All @@ -151,7 +151,7 @@ function Addon:TDINSPECT_OPTION_CHANGED(_, key, value)
elseif self.InspectGearFrame then
self.InspectGearFrame:Hide()
end
elseif key == 'inspectCompare' then
elseif key == 'inspectCompare' and InspectPaperDollFrame then
if value then
if InspectPaperDollFrame:IsShown() then
self:OpenInspectGearFrame()
Expand Down

0 comments on commit 933e1fb

Please sign in to comment.