Network/Wi-Fi: Removed auto polling every 30sec. Factorized more code and cleaned logs

This commit is contained in:
LemmyCook 2025-09-06 14:14:47 -04:00
parent fc1ee9fb2f
commit 7860c41959
4 changed files with 21 additions and 33 deletions

View file

@ -12,22 +12,14 @@ ColumnLayout {
spacing: Style.marginL * scaling
NToggle {
label: "WiFi Enabled"
description: "Enable WiFi connectivity."
label: "Enable Wi-Fi"
description: "Enable Wi-Fi connectivity."
checked: Settings.data.network.wifiEnabled
onToggled: checked => {
Settings.data.network.wifiEnabled = checked
NetworkService.setWifiEnabled(checked)
if (checked) {
ToastService.showNotice("WiFi", "Enabled")
} else {
ToastService.showNotice("WiFi", "Disabled")
}
}
onToggled: checked => NetworkService.setWifiEnabled(checked)
}
NToggle {
label: "Bluetooth Enabled"
label: "Enable Bluetooth"
description: "Enable Bluetooth connectivity."
checked: Settings.data.network.bluetoothEnabled
onToggled: checked => {