mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
feat(ipc): add commands for airplane mode
This commit is contained in:
@@ -671,6 +671,19 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "airplaneMode"
|
||||
function toggle() {
|
||||
BluetoothService.setAirplaneMode(!Settings.data.network.airplaneModeEnabled);
|
||||
}
|
||||
function enable() {
|
||||
BluetoothService.setAirplaneMode(true);
|
||||
}
|
||||
function disable() {
|
||||
BluetoothService.setAirplaneMode(false);
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "battery"
|
||||
function togglePanel() {
|
||||
|
||||
Reference in New Issue
Block a user