Skip to content

Commit

Permalink
Fix set visibility (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
dladrichem authored Apr 25, 2024
1 parent 31bbe72 commit 0b21caf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/guitares/pyqt5/mapbox/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ def set_visibility(self, true_or_false):
if self.layer:
# Container layer
for name in self.layer:
self.layer[name].set_visibility(true_or_false)
if true_or_false:
self.layer[name].show()
else:
self.layer[name].hide()
else:
# Data layer
if true_or_false:
Expand Down

0 comments on commit 0b21caf

Please sign in to comment.