Enable contents labels on q for "query"

backup_asyncify_input_modes
Tyler Goodlet 2021-06-22 08:18:18 -04:00
parent 54baa7b132
commit cfd6e3216f
1 changed files with 5 additions and 1 deletions

View File

@ -333,9 +333,13 @@ class Cursor(pg.GraphicsObject):
def in_query_mode(self, value: bool) -> None:
if self._in_query_mode and not value:
# edge trigger hide all labels
# edge trigger "off" hide all labels
self.contents_labels.hide()
elif not self._in_query_mode and value:
# edge trigger "on" hide all labels
self.contents_labels.update_labels(self._datum_xy[0])
self._in_query_mode = value
def add_hovered(