kupdatenotifier: reset state before refresh

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-04-08 02:23:41 +03:00
parent fe2d3fb38d
commit 3795fe041e

View file

@ -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();
}