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:
@@ -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