Allow launching OC when it's already running.
This commit is contained in:
parent
39100bd3e3
commit
251159e64a
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user