diff --git a/plasmoid/package/contents/ui/FullRepresentation.qml b/plasmoid/package/contents/ui/FullRepresentation.qml --- a/plasmoid/package/contents/ui/FullRepresentation.qml +++ b/plasmoid/package/contents/ui/FullRepresentation.qml @@ -19,6 +19,7 @@ */ import QtQuick 2.1 +import QtQuick.Layouts 1.1 import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.extras 2.0 as PlasmaExtras @@ -28,12 +29,25 @@ id: kdeconnect property alias devicesModel: devicesView.model - PlasmaExtras.Heading { - width: parent.width - level: 3 - opacity: 0.6 - text: i18n("No paired devices available") + RowLayout { visible: devicesView.count==0 + width: parent.width + + PlasmaExtras.Heading { + Layout.fillWidth: true + level: 3 + opacity: 0.6 + text: i18n("No paired devices available") + } + + PlasmaComponents.Button { + iconSource: "view-refresh" + tooltip: i18n("Search for devices") + + onClicked: { + KdeConnect.DaemonDbusInterface.forceOnNetworkChange(); + } + } } /* @@ -48,6 +62,7 @@ PlasmaExtras.ScrollArea { id: dialogItem anchors.fill: parent + visible: devicesView.count > 0 ListView { id: devicesView