From 3795fe041e1e780db1e738c448d845a40a097639 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 8 Apr 2022 02:23:41 +0300 Subject: [PATCH] kupdatenotifier: reset state before refresh Signed-off-by: Ivailo Monev --- kupdatenotifier/kupdatenotifier.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kupdatenotifier/kupdatenotifier.cpp b/kupdatenotifier/kupdatenotifier.cpp index 1a02923b..f32070bb 100644 --- a/kupdatenotifier/kupdatenotifier.cpp +++ b/kupdatenotifier/kupdatenotifier.cpp @@ -96,7 +96,7 @@ void KUpdateNotifier::refreshCache() if (transactioniface.isValid()) { transactioniface.asyncCall("RefreshCache", true); - qDebug() << transactioniface.property("Status") << transactioniface.property("Uid"); + kDebug() << transactioniface.property("Status"); } else { kWarning() << "transaction interface is not valid"; } @@ -115,6 +115,11 @@ void KUpdateNotifier::slotRefreshCache() { // qDebug() << Q_FUNC_INFO; + if (m_state == KUpdateNotifier::UpdatesAvaiableState) { + setOverlayIconByName(QString()); + slotGotIt(); + } + refreshCache(); }