Factor some line and label steps
parent
8501a9be4f
commit
5a0612e6a8
|
@ -253,6 +253,9 @@ class LineEditor:
|
||||||
dotted=dotted,
|
dotted=dotted,
|
||||||
size=size,
|
size=size,
|
||||||
)
|
)
|
||||||
|
line.label._use_extra_fields = size is not None
|
||||||
|
|
||||||
|
# cache staging line after creation
|
||||||
self._stage_line = line
|
self._stage_line = line
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
@ -271,17 +274,13 @@ class LineEditor:
|
||||||
line._dotted = dotted
|
line._dotted = dotted
|
||||||
line.color = color
|
line.color = color
|
||||||
line.setMouseHover(hl_on_hover)
|
line.setMouseHover(hl_on_hover)
|
||||||
|
|
||||||
# XXX: must have this to trigger updated
|
|
||||||
# label contents rendering
|
|
||||||
line.setPos(y)
|
|
||||||
line.set_level()
|
|
||||||
|
|
||||||
line.update()
|
|
||||||
line.show()
|
line.show()
|
||||||
label.show()
|
|
||||||
|
|
||||||
# label.set_label_str(line.)
|
# XXX: must have this to trigger updated
|
||||||
|
# label contents rendering
|
||||||
|
line.setPos(y)
|
||||||
|
line.set_level()
|
||||||
|
label.show()
|
||||||
|
|
||||||
self._active_staged_line = line
|
self._active_staged_line = line
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue