Align behaviour of the desktop app with the Android app
Summary: Now devices are shown same as in Android app, as in Kirigami app (kcapp) Test Plan: * Build kdeconnect, using the experimental version * Try pairing, unpairing, connecting and disconnected devices. * See the difference. Reviewers: albertvaka, #kde_connect, nicolasfella Reviewed By: #kde_connect, nicolasfella Subscribers: nicolasfella, kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D16935
This commit is contained in:
parent
7ef1da4914
commit
1cee137dcb
2 changed files with 6 additions and 6 deletions
|
@ -49,18 +49,18 @@ Kirigami.ScrollablePage
|
|||
text: switch (parseInt(section))
|
||||
{
|
||||
case DevicesModel.Paired:
|
||||
return i18n("Paired")
|
||||
return i18n("Remembered")
|
||||
case DevicesModel.Reachable:
|
||||
return i18n("Reachable")
|
||||
return i18n("Available")
|
||||
case (DevicesModel.Reachable | DevicesModel.Paired):
|
||||
return i18n("Paired & Reachable")
|
||||
return i18n("Connected")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
model: DevicesSortProxyModel {
|
||||
sourceModel: DevicesModel { displayFilter: DevicesModel.Reachable }
|
||||
sourceModel: DevicesModel {}
|
||||
}
|
||||
delegate: Kirigami.BasicListItem {
|
||||
width: ListView.view.width
|
||||
|
|
|
@ -104,12 +104,12 @@ Kirigami.ApplicationWindow
|
|||
property var objects: [findDevicesAction]
|
||||
Instantiator {
|
||||
model: DevicesSortProxyModel {
|
||||
sourceModel: DevicesModel { displayFilter: DevicesModel.Paired }
|
||||
sourceModel: DevicesModel { displayFilter: DevicesModel.Paired | DevicesModel.Reachable }
|
||||
}
|
||||
delegate: Kirigami.Action {
|
||||
iconName: model.iconName
|
||||
text: display + "\n" + toolTip
|
||||
enabled: status & DevicesModel.Reachable
|
||||
visible: status & DevicesModel.Reachable
|
||||
checked: pageStack.currentItem && pageStack.currentItem.currentDevice == device
|
||||
onTriggered: {
|
||||
root.pageStack.clear()
|
||||
|
|
Loading…
Reference in a new issue