Add a spinner to the app when pairing is requested
This commit is contained in:
parent
064ddfa3fe
commit
f138a0f07a
1 changed files with 10 additions and 1 deletions
|
@ -116,7 +116,7 @@ Kirigami.ScrollablePage {
|
|||
Kirigami.PlaceholderMessage {
|
||||
text: i18nd("kdeconnect-app", "This device is not paired")
|
||||
anchors.centerIn: parent
|
||||
visible: root.currentDevice && root.currentDevice.isReachable && !root.currentDevice.isPaired && !root.currentDevice.isPairRequestedByPeer
|
||||
visible: root.currentDevice && root.currentDevice.isReachable && !root.currentDevice.isPaired && !root.currentDevice.isPairRequestedByPeer && !root.currentDevice.isPairRequested
|
||||
helpfulAction: Kirigami.Action {
|
||||
text: i18nd("kdeconnect-app", "Pair")
|
||||
icon.name:"network-connect"
|
||||
|
@ -124,6 +124,15 @@ Kirigami.ScrollablePage {
|
|||
}
|
||||
}
|
||||
|
||||
Kirigami.PlaceholderMessage {
|
||||
text: i18nd("kdeconnect-app", "Pair requested")
|
||||
anchors.centerIn: parent
|
||||
visible: root.currentDevice && root.currentDevice.isReachable && root.currentDevice.isPairRequested
|
||||
QQC2.BusyIndicator {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.PlaceholderMessage {
|
||||
text: i18n("Pair requested")
|
||||
visible: root.currentDevice && root.currentDevice.isPairRequestedByPeer
|
||||
|
|
Loading…
Reference in a new issue