branch: elpa/dslide
commit 66215639a5c34ee2193ef7b475bfcc3083ae6f35
Author: Psionik K <73710933+psioni...@users.noreply.github.com>
Commit: Psionik K <73710933+psioni...@users.noreply.github.com>

    Image action displays inline images in its init method
    
    This is so nice.  Distracting to give a presentation and then you need to 
turn
    on images again.  And again.  Too slow to leave them on all the time.
    
    Signed-off-by: Psionik K <73710933+psioni...@users.noreply.github.com>
---
 macro-slides.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/macro-slides.el b/macro-slides.el
index 2445a5e887..55f721f1ca 100644
--- a/macro-slides.el
+++ b/macro-slides.el
@@ -1711,6 +1711,12 @@ stateful-sequence class methods.  METHOD-NAME is a 
string."
 (defclass ms-action-image (ms-action)
   () "Show images fullscreen in a buffer.")
 
+(cl-defmethod ms-init :after ((obj ms-action-image))
+  (org-display-inline-images
+   t nil ; TODO needs refresh?  Add some args?
+   (org-element-begin (ms-heading obj))
+   (org-element-end (ms-heading obj))))
+
 ;; TODO implementation relies on org link opening.  Does not check for file or
 ;; check that image mode displays the link correctly.
 ;; TODO make it just a link action?

Reply via email to