1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-15 09:52:50 -05: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
enabled: canConnect
onClicked: {
if (canConnect) {
if (BluetoothService.adapter && BluetoothService.adapter.discovering) {
BluetoothService.adapter.discovering = false;
}
modelData.connect();
}
modelData && modelData.connect();
}
}
@@ -489,12 +484,7 @@ Item {
cursorShape: canConnect ? Qt.PointingHandCursor : Qt.ArrowCursor
enabled: canConnect
onClicked: {
if (canConnect) {
if (BluetoothService.adapter && BluetoothService.adapter.discovering) {
BluetoothService.adapter.discovering = false;
}
modelData.connect();
}
modelData && modelData.connect();
}
}