focus window if exist instead of create popup

This commit is contained in:
David Botton 2024-04-10 00:38:29 -04:00
parent 3b309036b6
commit 6fc6f84f60

View file

@ -32,6 +32,9 @@
(defun on-open-file-ext (obj &key open-file popup)
(if (and *open-external-with-emacs* open-file)
(swank:ed-in-emacs open-file)
(let ((win (window-to-top-by-title obj open-file)))
(if win
(window-focus win)
(if *open-external-using-clog-popups*
(let ((pop (open-clog-popup obj
:specs (if (or popup *open-external-source-in-popup*)
@ -52,7 +55,7 @@
:specs (if (or popup *open-external-source-in-popup*)
"width=800,height=600"
"")
:name "_blank"))))
:name "_blank"))))))
(defun on-open-file (obj &key open-file
(title "New Source Editor")