Commit 9f892851 authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Don't hide the plasmoid, otherwise the install buttons don't make sense

parent 40b6a9ca
......@@ -32,8 +32,7 @@ Item {
ColumnLayout {
spacing: 5
visible: devicesView.count == 0
width: parent.width
height: parent.height
anchors.fill: parent
PlasmaExtras.Heading {
id: heading
......@@ -49,6 +48,7 @@ Item {
PlasmaComponents.Label {
Layout.fillWidth: true
Layout.bottomMargin: units.largeSpacing
text: i18n("Install KDE Connect on your Android device to integrate it with Plasma!")
horizontalAlignment: Text.AlignHCenter
......@@ -56,15 +56,19 @@ Item {
}
PlasmaComponents.Button {
Layout.leftMargin: units.largeSpacing
Layout.rightMargin: units.largeSpacing
Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true
text: i18n("Install from Google Play")
onClicked: Qt.openUrlExternally("https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp")
}
PlasmaComponents.Button {
Layout.leftMargin: units.largeSpacing
Layout.rightMargin: units.largeSpacing
Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true
text: i18n("Install from F-Droid")
onClicked: Qt.openUrlExternally("https://f-droid.org/en/packages/org.kde.kdeconnect_tp/")
}
......
......@@ -42,7 +42,7 @@ Item
Binding {
target: plasmoid
property: "status"
value: (connectDeviceModel.count > 0) ? PlasmaCore.Types.ActiveStatus : ((pairedDeviceModel.count > 0) ? PlasmaCore.Types.HiddenStatus : PlasmaCore.Types.PassiveStatus)
value: (connectDeviceModel.count > 0) ? PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.PassiveStatus
}
Plasmoid.fullRepresentation: FullRepresentation {
......
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