1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

bluetooth: don't disable discovery before connect

This commit is contained in:
bbedward
2025-07-17 23:00:21 -04:00
parent 1e6c801507
commit 930572e1cb

View File

@@ -469,12 +469,7 @@ Item {
cursorShape: canConnect ? Qt.PointingHandCursor : Qt.ArrowCursor cursorShape: canConnect ? Qt.PointingHandCursor : Qt.ArrowCursor
enabled: canConnect enabled: canConnect
onClicked: { onClicked: {
if (canConnect) { modelData && modelData.connect();
if (BluetoothService.adapter && BluetoothService.adapter.discovering) {
BluetoothService.adapter.discovering = false;
}
modelData.connect();
}
} }
} }
@@ -489,12 +484,7 @@ Item {
cursorShape: canConnect ? Qt.PointingHandCursor : Qt.ArrowCursor cursorShape: canConnect ? Qt.PointingHandCursor : Qt.ArrowCursor
enabled: canConnect enabled: canConnect
onClicked: { onClicked: {
if (canConnect) { modelData && modelData.connect();
if (BluetoothService.adapter && BluetoothService.adapter.discovering) {
BluetoothService.adapter.discovering = false;
}
modelData.connect();
}
} }
} }