mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-24 02:42:51 +00:00
kupdatenotifier: reset state before refresh
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
fe2d3fb38d
commit
3795fe041e
1 changed files with 6 additions and 1 deletions
|
@ -96,7 +96,7 @@ void KUpdateNotifier::refreshCache()
|
||||||
|
|
||||||
if (transactioniface.isValid()) {
|
if (transactioniface.isValid()) {
|
||||||
transactioniface.asyncCall("RefreshCache", true);
|
transactioniface.asyncCall("RefreshCache", true);
|
||||||
qDebug() << transactioniface.property("Status") << transactioniface.property("Uid");
|
kDebug() << transactioniface.property("Status");
|
||||||
} else {
|
} else {
|
||||||
kWarning() << "transaction interface is not valid";
|
kWarning() << "transaction interface is not valid";
|
||||||
}
|
}
|
||||||
|
@ -115,6 +115,11 @@ void KUpdateNotifier::slotRefreshCache()
|
||||||
{
|
{
|
||||||
// qDebug() << Q_FUNC_INFO;
|
// qDebug() << Q_FUNC_INFO;
|
||||||
|
|
||||||
|
if (m_state == KUpdateNotifier::UpdatesAvaiableState) {
|
||||||
|
setOverlayIconByName(QString());
|
||||||
|
slotGotIt();
|
||||||
|
}
|
||||||
|
|
||||||
refreshCache();
|
refreshCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue