mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
network: big feature enrichment
- Dedicated view in settings - VPN profile management - Ethernet disconnection - Turn prompts into floating windows
This commit is contained in:
@@ -16,6 +16,7 @@ Singleton {
|
||||
property string ethernetInterface: activeService?.ethernetInterface ?? ""
|
||||
property bool ethernetConnected: activeService?.ethernetConnected ?? false
|
||||
property string ethernetConnectionUuid: activeService?.ethernetConnectionUuid ?? ""
|
||||
property var ethernetDevices: activeService?.ethernetDevices ?? []
|
||||
|
||||
property var wiredConnections: activeService?.wiredConnections ?? []
|
||||
|
||||
@@ -88,7 +89,7 @@ Singleton {
|
||||
|
||||
signal networksUpdated
|
||||
signal connectionChanged
|
||||
signal credentialsNeeded(string token, string ssid, string setting, var fields, var hints, string reason, string connType, string connName, string vpnService)
|
||||
signal credentialsNeeded(string token, string ssid, string setting, var fields, var hints, string reason, string connType, string connName, string vpnService, var fieldsInfo)
|
||||
|
||||
property bool usingLegacy: false
|
||||
property var activeService: null
|
||||
@@ -230,6 +231,12 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
function disconnectEthernetDevice(deviceName) {
|
||||
if (activeService && activeService.disconnectEthernetDevice) {
|
||||
activeService.disconnectEthernetDevice(deviceName);
|
||||
}
|
||||
}
|
||||
|
||||
function startAutoScan() {
|
||||
if (activeService && activeService.startAutoScan) {
|
||||
activeService.startAutoScan();
|
||||
|
||||
Reference in New Issue
Block a user