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
This commit is contained in:
bbedward
2026-07-24 10:10:59 -04:00
parent 8af71036cc
commit 42060366cb
+1 -3
View File
@@ -56,7 +56,7 @@ Singleton {
return "wifi_1_bar"; return "wifi_1_bar";
} }
property string userPreference: "auto" readonly property string userPreference: SettingsData.networkPreference
property bool isConnecting: false property bool isConnecting: false
property string connectingSSID: "" property string connectingSSID: ""
property string connectionError: "" property string connectionError: ""
@@ -210,7 +210,6 @@ Singleton {
} }
Component.onCompleted: { Component.onCompleted: {
root.userPreference = SettingsData.networkPreference;
lastConnectedVpnUuid = SessionData.vpnLastConnected || ""; lastConnectedVpnUuid = SessionData.vpnLastConnected || "";
if (socketPath && socketPath.length > 0) { if (socketPath && socketPath.length > 0) {
checkDMSCapabilities(); checkDMSCapabilities();
@@ -732,7 +731,6 @@ Singleton {
function setNetworkPreference(preference) { function setNetworkPreference(preference) {
if (!networkAvailable) if (!networkAvailable)
return; return;
userPreference = preference;
changingPreference = true; changingPreference = true;
targetPreference = preference; targetPreference = preference;
SettingsData.set("networkPreference", preference); SettingsData.set("networkPreference", preference);