diff --git a/0001-Make-screenshots-visible-when-only-one.patch b/0001-Make-screenshots-visible-when-only-one.patch new file mode 100644 index 0000000..68e3d7f --- /dev/null +++ b/0001-Make-screenshots-visible-when-only-one.patch @@ -0,0 +1,40 @@ +From 3297fe6026edebb8db72bb179289bee844c26ae3 Mon Sep 17 00:00:00 2001 +From: Antonio Larrosa +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 + diff --git a/discover.changes b/discover.changes index 565f0e7..e85b36a 100644 --- a/discover.changes +++ b/discover.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Nov 2 13:02:27 UTC 2016 - alarrosa@suse.com + +- 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) + ------------------------------------------------------------------- Tue Nov 1 10:36:40 UTC 2016 - fabian@ritter-vogt.de diff --git a/discover.spec b/discover.spec index 8f596e6..ba3e0f3 100644 --- a/discover.spec +++ b/discover.spec @@ -25,6 +25,8 @@ License: GPL-2.0 Group: System/GUI/KDE Url: https://quickgit.kde.org/?p=discover.git Source: http://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM 0001-Make-screenshots-visible-when-only-one.patch -- Show app screenshots when there's only one too +Patch0: 0001-Make-screenshots-visible-when-only-one.patch BuildRequires: PackageKit-Qt5-devel BuildRequires: cmake >= 2.8.12 BuildRequires: extra-cmake-modules @@ -78,6 +80,7 @@ This is the systray plasmoid to notify the user that updates are available %prep %setup -q +%patch0 -p1 %build %cmake_kf5 -d build