Verified Commit 2c9af987 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

plasmoid: Give PlaceholderMessage an icon

"edit-none": No paired devices

"network-disconnect": All paired devices are unavailable

"kdeconnect": pairedDevicesModel.count < 0
parent f12169ef
Pipeline #173711 passed with stage
in 4 minutes and 2 seconds
......@@ -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)
......
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