Wi-Fi + BT: Right clicking icons on the bar or control center to enable/disable the feature immediately.

This commit is contained in:
ItsLemmy
2025-11-12 08:28:02 -05:00
parent d781f52e1a
commit 875aca2a36
4 changed files with 5 additions and 5 deletions
@@ -10,7 +10,6 @@ NIconButtonHot {
icon: BluetoothService.enabled ? "bluetooth" : "bluetooth-off"
tooltipText: I18n.tr("quickSettings.bluetooth.tooltip.action")
onClicked: {
PanelService.getPanel("bluetoothPanel", screen)?.toggle(this)
}
onClicked: PanelService.getPanel("bluetoothPanel", screen)?.toggle(this)
onRightClicked: BluetoothService.setBluetoothEnabled(!BluetoothService.enabled)
}
@@ -31,4 +31,5 @@ NIconButtonHot {
tooltipText: I18n.tr("quickSettings.wifi.tooltip.action")
onClicked: PanelService.getPanel("wifiPanel", screen)?.toggle(this)
onRightClicked: NetworkService.setWifiEnabled(!Settings.data.network.wifiEnabled)
}