From fe0801469722be6cae7f8b60d0651b79c2dec24d Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 19 Jul 2020 16:51:06 -0400 Subject: [PATCH] Image viewer: make thumbnailPath property optional --- src/gui/Popups/ImageViewerPopup.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/Popups/ImageViewerPopup.qml b/src/gui/Popups/ImageViewerPopup.qml index 52dec089..f95d8af6 100644 --- a/src/gui/Popups/ImageViewerPopup.qml +++ b/src/gui/Popups/ImageViewerPopup.qml @@ -10,7 +10,7 @@ HPopup { property alias thumbnailTitle: thumbnail.title property alias thumbnailMxc: thumbnail.mxc - property alias thumbnailPath: thumbnail.cachedPath + property alias thumbnailPath: thumbnail.cachedPath // optional property alias thumbnailCryptDict: thumbnail.cryptDict property alias fullTitle: full.title property alias fullMxc: full.mxc @@ -101,8 +101,8 @@ HPopup { Math.min(window.height, popup.overallSize.height) fillMode: HMxcImage.PreserveAspectFit - // Use only the cachedPath, don't waste time refetching thumb - canUpdate: false + // Use only cachedPath if set, don't waste time refetching thumb + canUpdate: ! cachedPath Behavior on width { HNumberAnimation { overshoot: popup.alternateScaling? 2 : 3 }