File 0003-List-known-updates-on-startup.patch of Package plasma5-pk-updates
From 3203b654db933f0e4b3085f243a01a710918c346 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Tue, 26 Dec 2017 16:10:25 +0100
Subject: [PATCH 3/3] List known updates on startup
Summary:
Currently it's possible that it just says "No updates available" although
PackageKit knows the opposite. This is because it doesn't even ask PK on
startup. With this, it always lists available updates, only refreshing
the cache if necessary.
Test Plan:
Ran plasmoidviewer, now lists available updates instead of
"Your system is up to date".
Reviewers: lukas, jgrulich
Subscribers: plasma-devel
Differential Revision: https://phabricator.kde.org/D9508
---
src/plasma/contents/ui/main.qml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/plasma/contents/ui/main.qml b/src/plasma/contents/ui/main.qml
index 387ae63..d667a5c 100644
--- a/src/plasma/contents/ui/main.qml
+++ b/src/plasma/contents/ui/main.qml
@@ -94,5 +94,10 @@ Item
onIsOnBatteryChanged: timer.restart()
}
- Component.onCompleted: timer.start()
+ Component.onCompleted: {
+ if(!needsForcedUpdate() && batteryAllowed) {
+ PkUpdates.checkUpdates(false);
+ }
+ timer.start()
+ }
}
--
2.15.0