Add ToastService, NToast etc
This commit is contained in:
parent
1993e28c18
commit
1d860da42e
18 changed files with 534 additions and 31 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue