mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
Do not create project if dir exists
This commit is contained in:
parent
cc1b306e75
commit
fdeb99121c
2 changed files with 13 additions and 8 deletions
1
clog.asd
1
clog.asd
|
|
@ -64,4 +64,5 @@
|
|||
(:file "systems")
|
||||
(:file "sys-browser")
|
||||
(:file "projects")
|
||||
(:file "project-directory")
|
||||
(:file "clog-builder-images")))
|
||||
|
|
|
|||
|
|
@ -2174,6 +2174,10 @@ of controls and double click to select control."
|
|||
(win panel) "Output Directory" fname
|
||||
(lambda (filename)
|
||||
(cond (filename
|
||||
(cond ((uiop:directory-exists-p (format nil "~A~A" filename sys-name))
|
||||
(clog-gui:alert-toast (win panel) "Cancel" "Canceled - Project directory exists")
|
||||
(window-close (win panel)))
|
||||
(t
|
||||
(template-copy sys-name start-dir filename :panel (window-content (win panel)))
|
||||
(when (getf tmpl-rec :www)
|
||||
(template-copy sys-name www-dir filename :panel (window-content (win panel))))
|
||||
|
|
@ -2181,7 +2185,7 @@ of controls and double click to select control."
|
|||
(when (project-win app)
|
||||
(clog-gui:window-close (project-win app)))
|
||||
(on-show-project panel :project sys-name)
|
||||
(create-div (window-content (win panel)) :content "<hr><b>done.</b>"))
|
||||
(create-div (window-content (win panel)) :content "<hr><b>done.</b>"))))
|
||||
(t
|
||||
(window-close (win panel))))))))
|
||||
(t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue