mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Add ToastService, NToast etc
This commit is contained in:
@@ -49,6 +49,11 @@ ColumnLayout {
|
||||
onToggled: checked => {
|
||||
Settings.data.network.wifiEnabled = checked
|
||||
NetworkService.setWifiEnabled(checked)
|
||||
if (checked) {
|
||||
ToastService.showNotice("WiFi:\nEnabled")
|
||||
} else {
|
||||
ToastService.showNotice("WiFi:\nDisabled")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +64,11 @@ ColumnLayout {
|
||||
onToggled: checked => {
|
||||
Settings.data.network.bluetoothEnabled = checked
|
||||
BluetoothService.setBluetoothEnabled(checked)
|
||||
if (checked) {
|
||||
ToastService.showNotice("Bluetooth:\nEnabled")
|
||||
} else {
|
||||
ToastService.showNotice("Bluetooth:\nDisabled")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user