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:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user