Skip to content

Commit

Permalink
Only set the filters property if it exists
Browse files Browse the repository at this point in the history
On sailfish, this is added as a patch to BluezQt5
  • Loading branch information
piggz committed Sep 17, 2022
1 parent b7023fd commit 63f2896
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/qml/pages/PairPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ PageListPL {
interval: 100
onTriggered: {
console.log("Delayed Manager operational:", _bluetoothManager.operational, _bluetoothManager.usableAdapter);

if (typeof(devicesModel.filters) == 'number') {
devicesModel.filters = BluezQt.DevicesModelPrivate.AllDevices;
}
}
}

Component.onCompleted: {
console.log("Manager operational:", _bluetoothManager.operational, _bluetoothManager.usableAdapter);

}

Connections {
Expand All @@ -63,7 +66,6 @@ PageListPL {

BluezQt.DevicesModel {
id: devicesModel
filters: BluezQt.DevicesModelPrivate.AllDevices
}

DelegateModel {
Expand Down Expand Up @@ -93,6 +95,7 @@ PageListPL {
delegate: ListItemPL {
id: listItem
contentHeight: styler.themeItemSizeLarge
// visible: model.FriendlyName.indexOf(deviceType) >= 0
onClicked: {
AmazfishConfig.pairedAddress = "";
AmazfishConfig.pairedName = "";
Expand Down

0 comments on commit 63f2896

Please sign in to comment.