mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
handle no project loaded better
This commit is contained in:
parent
acf4cf240b
commit
260ed38e10
1 changed files with 38 additions and 32 deletions
|
|
@ -117,14 +117,19 @@
|
|||
(window-focus win))
|
||||
(on-change (obj)
|
||||
(declare (ignore obj))
|
||||
(setf (text-value load-btn) "loading")
|
||||
(setf (text tree) "")
|
||||
(let* ((sel (value projects))
|
||||
(root (quicklisp:where-is-system sel))
|
||||
(let* ((sel (value projects)))
|
||||
(setf entry-point "")
|
||||
(cond ((equal sel "")
|
||||
(setf (text-value load-btn) "no project")
|
||||
(setf (current-project app) nil))
|
||||
(t
|
||||
(setf (text-value load-btn) "loading")
|
||||
(let* ((root (quicklisp:where-is-system sel))
|
||||
(dir (directory-namestring (uiop:truename* root))))
|
||||
(cond (root
|
||||
(setf (current-project app) sel)
|
||||
(setf (text-value load-btn) "not loaded")
|
||||
(setf (current-project app) sel)
|
||||
(create-clog-tree tree
|
||||
:fill-function (lambda (obj)
|
||||
(project-tree-dir-select obj dir))
|
||||
|
|
@ -147,7 +152,8 @@
|
|||
""))))
|
||||
(t
|
||||
(setf entry-point "")
|
||||
(setf (text-value load-btn) "no project"))))))
|
||||
(setf (current-project app) nil)
|
||||
(setf (text-value load-btn) "no project")))))))))
|
||||
(set-on-click load-btn (lambda (obj)
|
||||
(declare (ignore obj))
|
||||
(cond ((equalp (text-value load-btn) "loaded")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue