Hide the install buttons if you have already paired some device
This commit is contained in:
parent
c1f8d689db
commit
db626fa4bd
1 changed files with 8 additions and 0 deletions
|
@ -30,6 +30,10 @@ Item {
|
|||
id: kdeconnect
|
||||
property alias devicesModel: devicesView.model
|
||||
|
||||
KdeConnect.DevicesModel {
|
||||
id: allDevicesModel
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
spacing: 5
|
||||
visible: devicesView.count == 0
|
||||
|
@ -51,6 +55,8 @@ Item {
|
|||
Layout.fillWidth: true
|
||||
Layout.bottomMargin: units.largeSpacing
|
||||
|
||||
visible: allDevicesModel.count == 0
|
||||
|
||||
text: i18n("Install KDE Connect on your Android device to integrate it with Plasma!")
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
wrapMode: Text.WordWrap
|
||||
|
@ -61,6 +67,7 @@ Item {
|
|||
Layout.rightMargin: units.largeSpacing
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.fillWidth: true
|
||||
visible: allDevicesModel.count == 0
|
||||
text: i18n("Install from Google Play")
|
||||
onClicked: Qt.openUrlExternally("https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp")
|
||||
}
|
||||
|
@ -70,6 +77,7 @@ Item {
|
|||
Layout.rightMargin: units.largeSpacing
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.fillWidth: true
|
||||
visible: allDevicesModel.count == 0
|
||||
text: i18n("Install from F-Droid")
|
||||
onClicked: Qt.openUrlExternally("https://f-droid.org/en/packages/org.kde.kdeconnect_tp/")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue