mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
network: tweak preference settings for clarity
This commit is contained in:
@@ -65,6 +65,7 @@ ShellRoot {
|
||||
property string networkStatus: NetworkService.networkStatus
|
||||
property string ethernetIP: NetworkService.ethernetIP
|
||||
property string ethernetInterface: NetworkService.ethernetInterface
|
||||
property bool ethernetConnected: NetworkService.ethernetConnected
|
||||
property string wifiIP: NetworkService.wifiIP
|
||||
property bool bluetoothEnabled: BluetoothService.bluetoothEnabled
|
||||
property bool bluetoothAvailable: BluetoothService.bluetoothAvailable
|
||||
@@ -130,7 +131,7 @@ ShellRoot {
|
||||
running: root.wifiAutoRefreshEnabled && root.controlCenterVisible
|
||||
repeat: true
|
||||
onTriggered: {
|
||||
if (root.wifiAutoRefreshEnabled && root.controlCenterVisible) {
|
||||
if (root.wifiAutoRefreshEnabled && root.controlCenterVisible && NetworkService.wifiEnabled) {
|
||||
WifiService.scanWifi()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user