[applets/devicenotifier] Add placeholder icon when no device icon exists

Otherwise the list item loses its icon for a moment when its device is
removed, and this looks a bit odd.

BUG: 433534
FIXED-IN: 5.21.2
wilder-5.22
Nate Graham 5 years ago
parent 898b1877a7
commit e60a1694df
  1. 4
      applets/devicenotifier/package/contents/ui/DeviceItem.qml

@ -136,7 +136,9 @@ PlasmaExtras.ExpandableListItem {
}
icon: sdSource.data[udi] == undefined ? "" : sdSource.data[udi].Icon
// When there's no better icon available, show a placeholder icon instead
// of nothing
icon: sdSource.data[udi] == undefined ? "device-notifier" : sdSource.data[udi].Icon
iconEmblem: {
if (sdSource.data[udi] != undefined) {

Loading…
Cancel
Save