1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

settings: refactor for maintainability

This commit is contained in:
bbedward
2025-11-04 12:58:50 -05:00
parent bca5ee0c0d
commit 20116b3933
27 changed files with 959 additions and 1628 deletions

View File

@@ -280,7 +280,7 @@ Singleton {
if (vpnConnected && activeUuid) {
lastConnectedVpnUuid = activeUuid
SettingsData.setVpnLastConnected(activeUuid)
SettingsData.set("vpnLastConnected", activeUuid)
}
if (vpnIsBusy) {
@@ -558,7 +558,7 @@ Singleton {
userPreference = preference
changingPreference = true
targetPreference = preference
SettingsData.setNetworkPreference(preference)
SettingsData.set("networkPreference", preference)
DMSService.sendRequest("network.preference.set", { preference: preference }, response => {
changingPreference = false

View File

@@ -764,7 +764,7 @@ Singleton {
root.userPreference = preference
root.changingPreference = true
root.targetPreference = preference
SettingsData.setNetworkPreference(preference)
SettingsData.set("networkPreference", preference)
if (preference === "wifi") {
setConnectionPriority("wifi")