Commit e60a1694 authored by Nate Graham's avatar Nate Graham
Browse files

[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
parent 898b1877
......@@ -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) {
......
Supports Markdown
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