bluetooth menu: stop scanning when closed, fix null warnings

This commit is contained in:
end-4
2025-08-30 07:55:29 +02:00
parent a952ea02dc
commit 79f078653a
2 changed files with 7 additions and 4 deletions
@@ -181,7 +181,10 @@ Item {
}
}
onShowBluetoothDialogChanged: if (showBluetoothDialog) bluetoothDialogLoader.active = true;
onShowBluetoothDialogChanged: {
if (showBluetoothDialog) bluetoothDialogLoader.active = true;
else Bluetooth.defaultAdapter.discovering = false;
}
Loader {
id: bluetoothDialogLoader
anchors.fill: parent