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 {
|
Kirigami.PlaceholderMessage {
|
||||||
text: i18nd("kdeconnect-app", "This device is not paired")
|
text: i18nd("kdeconnect-app", "This device is not paired")
|
||||||
anchors.centerIn: parent
|
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 {
|
helpfulAction: Kirigami.Action {
|
||||||
text: i18nd("kdeconnect-app", "Pair")
|
text: i18nd("kdeconnect-app", "Pair")
|
||||||
icon.name:"network-connect"
|
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 {
|
Kirigami.PlaceholderMessage {
|
||||||
text: i18n("Pair requested")
|
text: i18n("Pair requested")
|
||||||
visible: root.currentDevice && root.currentDevice.isPairRequestedByPeer
|
visible: root.currentDevice && root.currentDevice.isPairRequestedByPeer
|
||||||
|
|
Loading…
Reference in a new issue