summaryrefslogtreecommitdiff
path: root/lisp/image/image-dired-util.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/image/image-dired-util.el')
-rw-r--r--lisp/image/image-dired-util.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/image/image-dired-util.el b/lisp/image/image-dired-util.el
index cbe040128e8..dcf0b22cfe2 100644
--- a/lisp/image/image-dired-util.el
+++ b/lisp/image/image-dired-util.el
@@ -81,7 +81,9 @@ See also `image-dired-thumbnail-storage'."
;; MD5 is mandated by the Thumbnail Managing Standard.
(concat (md5 (concat "file://" (expand-file-name file))) ".png")
(expand-file-name thumbdir (xdg-cache-home)))))
- ((eq 'use-image-dired-dir image-dired-thumbnail-storage)
+ ((or (eq 'image-dired image-dired-thumbnail-storage)
+ ;; Maintained for backwards compatibility:
+ (eq 'use-image-dired-dir image-dired-thumbnail-storage))
(let* ((f (expand-file-name file))
(hash
(md5 (file-name-as-directory (file-name-directory f)))))