mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-05 21:15:38 -05:00
net: allow overriding wifi device
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -26,6 +26,9 @@ Singleton {
|
||||
property string wifiConnectionUuid: activeService?.wifiConnectionUuid ?? ""
|
||||
property string wifiDevicePath: activeService?.wifiDevicePath ?? ""
|
||||
property string activeAccessPointPath: activeService?.activeAccessPointPath ?? ""
|
||||
property var wifiDevices: activeService?.wifiDevices ?? []
|
||||
property string wifiDeviceOverride: activeService?.wifiDeviceOverride ?? ""
|
||||
property string connectingDevice: activeService?.connectingDevice ?? ""
|
||||
|
||||
property string currentWifiSSID: activeService?.currentWifiSSID ?? ""
|
||||
property int wifiSignalStrength: activeService?.wifiSignalStrength ?? 0
|
||||
@@ -294,4 +297,10 @@ Singleton {
|
||||
activeService.setWifiAutoconnect(ssid, autoconnect);
|
||||
}
|
||||
}
|
||||
|
||||
function setWifiDeviceOverride(deviceName) {
|
||||
if (activeService && activeService.setWifiDeviceOverride) {
|
||||
activeService.setWifiDeviceOverride(deviceName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user