Don't hide the plasmoid, otherwise the install buttons don't make sense
This commit is contained in:
parent
40b6a9ca15
commit
9f8928513d
2 changed files with 9 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue