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:
@@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user