mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-29 22:47:47 -04:00
bluetooth: don't disable discovery before connect
This commit is contained in:
1 parent
1e6c801507
commit
930572e1cb
1 file changed
+2
-12
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user