Allow launching OC when it's already running.

This commit is contained in:
Vincent St-Amour 2012-09-10 15:20:15 -04:00
parent 39100bd3e3
commit 251159e64a

View File

@ -242,7 +242,9 @@
[value #f]))) ; will be updated in `show-optimization-coach'
(define/public (show-optimization-coach)
(cond [panel (send (get-area-container) add-child panel)]
(define area-container (get-area-container))
(cond [panel (or (memq panel (send area-container get-children))
(send area-container add-child panel))]
[else (create-panel)])
;; update check-boxes
(define filters (send (get-definitions-text) get-filters))