forked from Shinonome/dots-hyprland
bluetooth menu: stop scanning when closed, fix null warnings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user