mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +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()) {
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue