add console to menu

This commit is contained in:
David Botton 2024-04-05 16:14:38 -04:00
parent caf52fe44d
commit 583733e564
2 changed files with 2 additions and 1 deletions

View file

@ -4,7 +4,7 @@
(let ((app (connection-data-item obj "builder-app-data"))) (let ((app (connection-data-item obj "builder-app-data")))
(if (console-win app) (if (console-win app)
(window-focus (console-win app)) (window-focus (console-win app))
(let* ((win (on-open-file obj :title "Console"))) (let* ((win (on-open-file obj :title "CLOG Builder Console")))
(set-on-window-close win (lambda (obj) (set-on-window-close win (lambda (obj)
(setf (console-win app) nil))) (setf (console-win app) nil)))
(setf (console-win app) win))))) (setf (console-win app) win)))))

View file

@ -384,6 +384,7 @@ clog-builder window.")
(create-gui-menu-item tools :content "List Callees" :on-click 'on-show-callees) (create-gui-menu-item tools :content "List Callees" :on-click 'on-show-callees)
(create-gui-menu-item tools :content "Thread Viewer" :on-click 'on-show-thread-viewer) (create-gui-menu-item tools :content "Thread Viewer" :on-click 'on-show-thread-viewer)
(create-gui-menu-item tools :content "CLOG Builder REPL" :on-click 'on-repl) (create-gui-menu-item tools :content "CLOG Builder REPL" :on-click 'on-repl)
(create-gui-menu-item tools :content "CLOG Builder Console" :on-click 'on-open-console)
(create-gui-menu-item tools :content "Copy/Cut History" :on-click 'on-show-copy-history-win) (create-gui-menu-item tools :content "Copy/Cut History" :on-click 'on-show-copy-history-win)
(unless *clogframe-mode* (unless *clogframe-mode*
(create-gui-menu-item tools :content "Image to HTML Data" :on-click 'on-image-to-data)) (create-gui-menu-item tools :content "Image to HTML Data" :on-click 'on-image-to-data))