mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-09 20:30:26 -08:00
do not add more than once inspectors of same name
This commit is contained in:
parent
46c1f230dd
commit
e99e5a2123
1 changed files with 4 additions and 1 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue