Remove obsolete visibility reset

I made sure to leave a comment here because I thought I might leave this in by accident.
I changed how it works in 79ae7e1b7b.
This commit is contained in:
Isaiah Odhner 2023-06-03 19:48:21 -04:00
parent 336414d786
commit 62fb218a1a

View File

@ -855,8 +855,6 @@ class Inspector(Container):
"""Draw a box to the screen.""" """Draw a box to the screen."""
try: try:
box = self._highlight_boxes[dom_node][name] box = self._highlight_boxes[dom_node][name]
# reset if hidden by get_widget_under_mouse (to avoid picking the highlight box)
box.visible = True
except KeyError: except KeyError:
box = Container(classes="inspector_highlight") box = Container(classes="inspector_highlight")
self._highlight_boxes[dom_node][name] = box self._highlight_boxes[dom_node][name] = box