From 066102e64dc37d420fdd3dd94bbe1a5072d3b22a Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 19 Jul 2020 20:29:25 -0400 Subject: [PATCH] fullscreen: alt. scale mode only if image < window --- src/gui/Popups/ImageViewerPopup.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/Popups/ImageViewerPopup.qml b/src/gui/Popups/ImageViewerPopup.qml index ae6bb9bc..f86d850a 100644 --- a/src/gui/Popups/ImageViewerPopup.qml +++ b/src/gui/Popups/ImageViewerPopup.qml @@ -41,16 +41,18 @@ HPopup { function showFullScreen() { if (activedFullScreen) return + window.showFullScreen() popup.activedFullScreen = true - popup.alternateScaling = true + if (! imageLargerThanWindow) popup.alternateScaling = true } function exitFullScreen() { if (! activedFullScreen) return + window.showNormal() popup.activedFullScreen = false - popup.alternateScaling = false + if (! imageLargerThanWindow) popup.alternateScaling = false } function toggleFulLScreen() {