mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- respect the user's mod-wide "enabled" setting when changing profiles (ticket #117)
- also cleaned up some logic that could cause errors when enabling the mod due to a profile switch when the player initially loaded with it disabled
This commit is contained in:
@ -410,7 +410,7 @@ function IceElement.prototype:IsVisible()
|
||||
end
|
||||
|
||||
function IceElement.prototype:Show(bShouldShow)
|
||||
if self.bIsVisible == bShouldShow then
|
||||
if self.bIsVisible == bShouldShow or not self.masterFrame or not self.frame then
|
||||
return nil
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user