do not add more than once inspectors of same name

This commit is contained in:
David Botton 2024-06-02 16:07:54 -04:00
parent 46c1f230dd
commit e99e5a2123

View file

@ -35,7 +35,10 @@ replaced. (Exported)"
(defun add-inspector (name func)
"Add a custom inspector with NAME and (FUNC object title value clog-obj)"
(pushnew (list :name name :func func) *inspectors*))
(setf *inspectors* (remove-if (lambda (x)
(equalp name (getf x :name)))
*inspectors*))
(push (list :name name :func func) *inspectors*))
(defun reset-control-pallete (panel)
(let* ((app (connection-data-item panel "builder-app-data"))