SHA256
1
0
forked from pool/discover
discover/0001-Make-screenshots-visible-when-only-one.patch
Fabian Vogt 17a70a097d Accepting request 438300 from home:alarrosa:branches:KDE:Frameworks5
- Added 0001-Make-screenshots-visible-when-only-one.patch which fixes
  an issue by which discover didn't show application screenshots when
  there was only one screenshot (kde#371724)

OBS-URL: https://build.opensuse.org/request/show/438300
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/discover?expand=0&rev=57
2016-11-02 13:21:37 +00:00

41 lines
1.2 KiB
Diff

From 3297fe6026edebb8db72bb179289bee844c26ae3 Mon Sep 17 00:00:00 2001
From: Antonio Larrosa <larrosa@kde.org>
Date: Wed, 2 Nov 2016 11:43:17 +0100
Subject: Make screenshots visible when there's only one screenshot too
Summary:
Applications with only one screenshot also deserve to have it visible.
BUG: 371724
FIXED-IN: 5.8.4
Test Plan:
Open any application that only has one screenshot (e.g. poedit).
No screenshot is shown until this patch is applied.
Reviewers: davidedmundson, apol
Reviewed By: davidedmundson, apol
Differential Revision: https://phabricator.kde.org/D3223
---
discover/qml/ApplicationScreenshots.qml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/discover/qml/ApplicationScreenshots.qml b/discover/qml/ApplicationScreenshots.qml
index dc7c62d..92e2d8c 100644
--- a/discover/qml/ApplicationScreenshots.qml
+++ b/discover/qml/ApplicationScreenshots.qml
@@ -32,7 +32,7 @@ Flow {
readonly property real side: Kirigami.Units.gridUnit * 8
property QtObject page
- visible: screenshotsModel.count>1
+ visible: screenshotsModel.count>0
readonly property var fu: Kirigami.OverlaySheet {
id: overlay
--
cgit v0.11.2