plasmoid: Give PlaceholderMessage an icon
"edit-none": No paired devices "network-disconnect": All paired devices are unavailable "kdeconnect": pairedDevicesModel.count < 0
This commit is contained in:
parent
f12169ef00
commit
2c9af9874e
1 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,13 @@ PlasmaExtras.Representation {
|
|||
anchors.centerIn: parent
|
||||
visible: devicesView.count === 0
|
||||
|
||||
iconName: {
|
||||
if (pairedDevicesModel.count >= 0) {
|
||||
return pairedDevicesModel.count === 0 ? "edit-none" : "network-disconnect";
|
||||
}
|
||||
return "kdeconnect";
|
||||
}
|
||||
|
||||
text: {
|
||||
if (pairedDevicesModel.count >= 0) {
|
||||
return pairedDevicesModel.count == 0 ? i18n("No paired devices") : i18np("Paired device is unavailable", "All paired devices are unavailable", pairedDevicesModel.count)
|
||||
|
|
Loading…
Reference in a new issue