Hello community,

here is the log from the commit of package plasma5-pk-updates for 
openSUSE:Factory checked in at 2018-02-13 10:24:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plasma5-pk-updates (Old)
 and      /work/SRC/openSUSE:Factory/.plasma5-pk-updates.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "plasma5-pk-updates"

Tue Feb 13 10:24:39 2018 rev:11 rq:574677 version:0.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/plasma5-pk-updates/plasma5-pk-updates.changes    
2018-01-29 14:56:33.969020947 +0100
+++ 
/work/SRC/openSUSE:Factory/.plasma5-pk-updates.new/plasma5-pk-updates.changes   
    2018-02-13 10:24:41.147292323 +0100
@@ -1,0 +2,6 @@
+Fri Feb  9 14:05:16 UTC 2018 - fab...@ritter-vogt.de
+
+- Add patch to close the plasmoid after update installation (boo#1077633):
+  * 0001-Close-the-plasmoid-after-updates-got-installed.patch
+
+-------------------------------------------------------------------

New:
----
  0001-Close-the-plasmoid-after-updates-got-installed.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ plasma5-pk-updates.spec ++++++
--- /var/tmp/diff_new_pack.HjiO1z/_old  2018-02-13 10:24:41.891265518 +0100
+++ /var/tmp/diff_new_pack.HjiO1z/_new  2018-02-13 10:24:41.891265518 +0100
@@ -35,6 +35,8 @@
 Patch4:         0002-Show-that-the-last-check-failed-if-no-updates-availa.patch
 # PATCH-FIX-UPSTREAM
 Patch5:         0003-List-known-updates-on-startup.patch
+# PATCH-FIX-UPSTREAM
+Patch6:         0001-Close-the-plasmoid-after-updates-got-installed.patch
 BuildRequires:  PackageKit-Qt5-devel
 BuildRequires:  cmake >= 3.0
 BuildRequires:  extra-cmake-modules >= 1.3.0

++++++ 0001-Close-the-plasmoid-after-updates-got-installed.patch ++++++
>From f7aef3bb8d7e0839470318cf9326d90ab95e0cf5 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fab...@ritter-vogt.de>
Date: Fri, 9 Feb 2018 14:43:10 +0100
Subject: [PATCH] Close the plasmoid after updates got installed

Summary:
The plasmoid searches for the next batch of updates which might be misleading.

Related: https://bugs.kde.org/show_bug.cgi?id=390143

Test Plan: Installed updates, plasmoid closed.

Reviewers: lukas, jgrulich

Subscribers: plasma-devel

Differential Revision: https://phabricator.kde.org/D10404
---
 src/declarative/pkupdates.cpp   | 1 +
 src/declarative/pkupdates.h     | 5 +++++
 src/plasma/contents/ui/Full.qml | 1 +
 3 files changed, 7 insertions(+)

diff --git a/src/declarative/pkupdates.cpp b/src/declarative/pkupdates.cpp
index 50265c9..71b9847 100644
--- a/src/declarative/pkupdates.cpp
+++ b/src/declarative/pkupdates.cpp
@@ -395,6 +395,7 @@ void PkUpdates::onFinished(PackageKit::Transaction::Exit 
status, uint runtime)
             KNotification::event(KNotification::Notification, i18n("Updates 
Installed"),
                                  i18np("Successfully updated %1 package", 
"Successfully updated %1 packages", packages.count()),
                                  
KIconLoader::global()->loadIcon("system-software-update", 
KIconLoader::Desktop), 0, KNotification::Persistent);
+            emit updatesInstalled();
         } else {
             qCDebug(PLASMA_PK_UPDATES) << "Update packages transaction didn't 
finish successfully";
             // just try to refresh cache in case of error, the user might have 
installed the updates manually meanwhile
diff --git a/src/declarative/pkupdates.h b/src/declarative/pkupdates.h
index 6bb1b83..1f17da5 100644
--- a/src/declarative/pkupdates.h
+++ b/src/declarative/pkupdates.h
@@ -144,6 +144,11 @@ signals:
      */
     void done();
 
+    /**
+     * Emitted after updates were installed successfully
+     */
+    void updatesInstalled();
+
     /**
      * Emitted with update details
      * @see getUpdateDetails()
diff --git a/src/plasma/contents/ui/Full.qml b/src/plasma/contents/ui/Full.qml
index 15c955f..eca7ec0 100644
--- a/src/plasma/contents/ui/Full.qml
+++ b/src/plasma/contents/ui/Full.qml
@@ -45,6 +45,7 @@ Item {
         target: PkUpdates
         onUpdatesChanged: populateModel()
         onUpdateDetail: updateDetails(packageID, updateText, urls)
+        onUpdatesInstalled: plasmoid.expanded = false
     }
 
     Component.onCompleted: populateModel()
-- 
2.16.1


Reply via email to