forked from wow/OmicronFrames
Fixed typos and logic error in UnitFrame:Disable
This function is currently unused so these changes are not tested. The Disable function now always hides the UnitFrame and calls UnregisterUnitWatch with the correct parameters.
This commit is contained in:
1 parent
991bc5d0fe
commit
14aeb2c43e
1 file changed
+2
-3
@@ -389,10 +389,9 @@ function UnitFrame:Disable()
|
|||||||
if self.hideInRaid then
|
if self.hideInRaid then
|
||||||
UnregisterAttributeDriver(self.secureFrame, "state-visibility")
|
UnregisterAttributeDriver(self.secureFrame, "state-visibility")
|
||||||
elseif self.unit ~= "player" then
|
elseif self.unit ~= "player" then
|
||||||
UnregisterUnitWatch(self.secure_frame, self.condition)
|
UnregisterUnitWatch(self.secureFrame, false)
|
||||||
else
|
|
||||||
self.secureFrame:Hide()
|
|
||||||
end
|
end
|
||||||
|
self.secureFrame:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- returns true if this unit is a target unit
|
-- returns true if this unit is a target unit
|
||||||
|
|||||||
Reference in new issue
Block a user