From 13c2815268271094ddc2432e80de92ad788270ef Mon Sep 17 00:00:00 2001 From: cage Date: Fri, 12 May 2023 15:34:58 +0200 Subject: [PATCH] - [GUI] show 'inline' menu item only for links to supported files. --- src/gui/client/main-window.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/client/main-window.lisp b/src/gui/client/main-window.lisp index 4f46e24..530457c 100644 --- a/src/gui/client/main-window.lisp +++ b/src/gui/client/main-window.lisp @@ -409,7 +409,8 @@ (let* ((popup-menu (gui:make-menu nil (_"link menu"))) (x (gui:screen-mouse-x)) (y (gui:screen-mouse-y))) - (gui:make-menubutton popup-menu (_ "Inline") #'open-inline-callback) + (when (inline-possible-p) + (gui:make-menubutton popup-menu (_ "Inline") #'open-inline-callback)) (gui:make-menubutton popup-menu (_ "Add link to bookmarks") #'bookmark-link-callback) (gui:make-menubutton popup-menu (_ "Add link to tour") #'add-to-tour-callback) (gui:make-menubutton popup-menu (_ "Copy link to the clipboard") #'copy-link-callback)