mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-11 07:52:50 -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
|
||||
|
||||
Reference in New Issue
Block a user