diff --git a/pygvisuals/widgets/widget.py b/pygvisuals/widgets/widget.py index a2ba865..815f69b 100644 --- a/pygvisuals/widgets/widget.py +++ b/pygvisuals/widgets/widget.py @@ -123,7 +123,6 @@ def setVisible(self, visible): visible = bool(visible) if self.visible != visible: self.visible = visible - self.setActive(visible) return self def isVisible(self): @@ -193,7 +192,7 @@ def isActive(self): Returns: A boolean indicating whether the widget is active. """ - return self._active + return self._active and self.visible def setBounds(self, rect): """