Changeset View
Changeset View
Standalone View
Standalone View
kded/notification.cpp
Show First 20 Lines • Show All 394 Lines • ▼ Show 20 Line(s) | 381 | if (state == NetworkManager::ActiveConnection::Activated) { | |||
---|---|---|---|---|---|
395 | 395 | | |||
396 | switch (ac->type()) { | 396 | switch (ac->type()) { | ||
397 | case NetworkManager::ConnectionSettings::Wireless: | 397 | case NetworkManager::ConnectionSettings::Wireless: | ||
398 | iconName = QStringLiteral("network-wireless-on"); | 398 | iconName = QStringLiteral("network-wireless-on"); | ||
399 | break; | 399 | break; | ||
400 | case NetworkManager::ConnectionSettings::Wired: | 400 | case NetworkManager::ConnectionSettings::Wired: | ||
401 | iconName = QStringLiteral("network-wired-activated"); | 401 | iconName = QStringLiteral("network-wired-activated"); | ||
402 | break; | 402 | break; | ||
403 | case NetworkManager::ConnectionSettings::WireGuard: | ||||
404 | iconName = QStringLiteral("network-vpn"); | ||||
405 | break; | ||||
403 | default: // silence warning | 406 | default: // silence warning | ||
404 | break; | 407 | break; | ||
405 | } | 408 | } | ||
406 | } else if (state == NetworkManager::ActiveConnection::Deactivated) { | 409 | } else if (state == NetworkManager::ActiveConnection::Deactivated) { | ||
407 | if (m_preparingForSleep) { | 410 | if (m_preparingForSleep) { | ||
408 | qCDebug(PLASMA_NM) << "Not emitting connection deactivated notification as we're about to suspend"; | 411 | qCDebug(PLASMA_NM) << "Not emitting connection deactivated notification as we're about to suspend"; | ||
409 | return; | 412 | return; | ||
410 | } | 413 | } | ||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |