Skip to content

Commit

Permalink
Fix inconsistency between visible and active and setVisible
Browse files Browse the repository at this point in the history
- fix #21
  • Loading branch information
Impelon committed May 4, 2020
1 parent 42cd63b commit 562648e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pygvisuals/widgets/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
"""
Expand Down

0 comments on commit 562648e

Please sign in to comment.