Commit 5a147825 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[applets/devicenotifier] Port placeholder message to PlaceholderMessage

parent 15d61847
......@@ -39,17 +39,6 @@ MouseArea {
Layout.minimumWidth: units.gridUnit * 12
Layout.minimumHeight: units.gridUnit * 12
PlasmaExtras.Heading {
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WordWrap
level: 3
text: i18n("No devices available")
visible: notifierDialog.count === 0 && !devicenotifier.pendingDelegateRemoval
enabled: false
}
PlasmaCore.DataSource {
id: userActivitySource
engine: "powermanagement"
......@@ -164,6 +153,13 @@ MouseArea {
}
}
}
PlasmaExtras.PlaceholderMessage {
anchors.centerIn: parent
width: parent.width - (units.largeSpacing * 4)
text: i18n("No devices available")
visible: notifierDialog.count === 0 && !devicenotifier.pendingDelegateRemoval
}
}
}
}
......
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