mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18:28 -04:00
network: fix networkPreference reverting from eth to wifi
fixes #2919
port 1.5
(cherry picked from commit 42060366cb)
This commit is contained in:
@@ -56,7 +56,7 @@ Singleton {
|
||||
return "wifi_1_bar";
|
||||
}
|
||||
|
||||
property string userPreference: "auto"
|
||||
readonly property string userPreference: SettingsData.networkPreference
|
||||
property bool isConnecting: false
|
||||
property string connectingSSID: ""
|
||||
property string connectionError: ""
|
||||
@@ -187,7 +187,6 @@ Singleton {
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
root.userPreference = SettingsData.networkPreference;
|
||||
lastConnectedVpnUuid = SessionData.vpnLastConnected || "";
|
||||
if (socketPath && socketPath.length > 0) {
|
||||
checkDMSCapabilities();
|
||||
@@ -672,7 +671,6 @@ Singleton {
|
||||
function setNetworkPreference(preference) {
|
||||
if (!networkAvailable)
|
||||
return;
|
||||
userPreference = preference;
|
||||
changingPreference = true;
|
||||
targetPreference = preference;
|
||||
SettingsData.set("networkPreference", preference);
|
||||
|
||||
Reference in New Issue
Block a user