1
0
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:
bbedward
2026-07-24 10:10:59 -04:00
committed by dms-ci[bot]
parent 3cedd56f23
commit 5a80a32951
+1 -3
View File
@@ -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);