Show xhair even if order is filled while line is hovered

basic_orders
Tyler Goodlet 2021-03-18 21:57:08 -04:00
parent 5610807b8e
commit 6fa1d4dc88
1 changed files with 5 additions and 0 deletions

View File

@ -392,11 +392,16 @@ class LineEditor:
# try to look up line from our registry
line = self._order_lines.pop(uuid, None)
if line:
# if hovered remove from cursor set
hovered = self.chart._cursor._hovered
if line in hovered:
hovered.remove(line)
# make sure the xhair doesn't get left off
# just because we never got a un-hover event
self.chart._cursor.show_xhair()
line.delete()
return line