1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 23:12:49 -05:00

meta cleanup and refactors

This commit is contained in:
bbedward
2025-07-18 11:40:17 -04:00
parent 06607fa25e
commit 3a3f18c298
30 changed files with 473 additions and 783 deletions

View File

@@ -139,7 +139,6 @@ Singleton {
if (preferenceComplete) {
root.changingPreference = false
root.targetPreference = ""
preferenceTimeoutTimer.stop()
console.log("Network preference change completed successfully")
}
}
@@ -379,26 +378,8 @@ Singleton {
}
function delayedRefreshNetworkStatus() {
console.log("Delayed network status refresh...")
refreshTimer.start()
}
Timer {
id: refreshTimer
interval: 1000
onTriggered: {
refreshNetworkStatus()
}
}
Timer {
id: preferenceTimeoutTimer
interval: 15000 // 15 seconds timeout
onTriggered: {
console.log("Network preference change timeout - resetting changingPreference state")
root.changingPreference = false
root.targetPreference = ""
}
console.log("Refreshing network status immediately...")
refreshNetworkStatus()
}
function setNetworkPreference(preference) {
@@ -406,7 +387,6 @@ Singleton {
root.userPreference = preference
root.changingPreference = true
root.targetPreference = preference
preferenceTimeoutTimer.start()
Prefs.setNetworkPreference(preference)
if (preference === "wifi") {