Commit 6c9a4227 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[kded] Ignore connection deactivation shortly after wakeup

We already ignore any deactivation between suspend and resume, i.e. PrepareForSleep
true and false, however, it can happen that the connection deactivation is only
registered when the system is already back up, leading to a deactivation notification.
parent a5f7bc46
......@@ -410,6 +410,11 @@ void Notification::onActiveConnectionStateChanged(NetworkManager::ActiveConnecti
return;
}
if (m_checkActiveConnectionOnResumeTimer && m_checkActiveConnectionOnResumeTimer->isActive()) {
qCDebug(PLASMA_NM) << "Not emitting connection deactivated notification as we've just woken up from suspend";
return;
}
eventId = QStringLiteral("ConnectionDeactivated");
text = i18n("Connection '%1' deactivated.", acName);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment