clean up debug print

This commit is contained in:
Jeremy Penner 2021-04-19 23:57:39 -04:00
parent c77804a1f5
commit 6f40e7ff40

View file

@ -227,7 +227,7 @@
(local row-h (+ (style.font:get_height) style.padding.y))
(local new-selection (and (focused? view tag) view.imstate.focus.selection))
(local focused-h (if (focused? view tag) (* row-h (+ (length options) 1)) row-h))
(print new-selection (focused? view tag) focused-h view.imstate.active)
(when new-selection (set view.imstate.focus nil))
(renderer.draw_rect x y w row-h style.selection)
@ -241,7 +241,6 @@
(renderer.draw_rect x row-y w row-h style.selection)
(renderer.draw_text style.font option (+ x style.padding.x) (+ row-y (/ style.padding.y 2)) style.text)
(when (button view [(make-tag tag) i] x row-y w row-h)
(print "selected" option)
(set view.imstate.focus.selection option))
(set row-y (+ row-y row-h)))))