Skip to content

Commit

Permalink
Merge pull request #314 from jmlich/messageWhenBTOff
Browse files Browse the repository at this point in the history
Show message when bluetooth is off
  • Loading branch information
piggz authored Dec 8, 2023
2 parents 102938d + bdb7982 commit d2a2608
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/qml/pages/PairPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ PageListPL {
property QtObject _bluetoothManager : BluezQt.Manager

function startDiscovery() {
if (!adapter || adapter.discovering) {
if (!adapter) {
showMessage(qsTr("Bluetooth adapter is not available"))
return
}
if (adapter.discovering) {
return
}
adapter.startDiscovery()
Expand Down

0 comments on commit d2a2608

Please sign in to comment.