Add button to dismiss PR.
This commit is contained in:
parent
b4fb55dd2e
commit
d350c70c98
|
@ -83,7 +83,7 @@
|
||||||
(loop (cdr report)))])))
|
(loop (cdr report)))])))
|
||||||
(set! highlights new-highlights))
|
(set! highlights new-highlights))
|
||||||
|
|
||||||
(define/private (clear-highlights)
|
(define/public (clear-highlights)
|
||||||
(for ([h (in-list highlights)])
|
(for ([h (in-list highlights)])
|
||||||
(match h
|
(match h
|
||||||
[`(,start ,end . ,rest )
|
[`(,start ,end . ,rest )
|
||||||
|
@ -156,6 +156,10 @@
|
||||||
[parent (send this get-area-container)]
|
[parent (send this get-area-container)]
|
||||||
[stretchable-height #f]))
|
[stretchable-height #f]))
|
||||||
(set! panel p)
|
(set! panel p)
|
||||||
|
(new button%
|
||||||
|
[label "Clear"]
|
||||||
|
[parent panel]
|
||||||
|
[callback (lambda _ (send definitions clear-highlights))])
|
||||||
(for ([(l f) (in-pairs check-boxes)])
|
(for ([(l f) (in-pairs check-boxes)])
|
||||||
(new check-box%
|
(new check-box%
|
||||||
[label l]
|
[label l]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user