mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 16:02:51 -05:00
gamma: fix persistence of night mode auto-location
This commit is contained in:
@@ -250,11 +250,11 @@ Singleton {
|
|||||||
"monitorWallpapersDark", "doNotDisturb", "nightModeEnabled",
|
"monitorWallpapersDark", "doNotDisturb", "nightModeEnabled",
|
||||||
"nightModeTemperature", "nightModeAutoEnabled", "nightModeAutoMode",
|
"nightModeTemperature", "nightModeAutoEnabled", "nightModeAutoMode",
|
||||||
"nightModeStartHour", "nightModeStartMinute", "nightModeEndHour",
|
"nightModeStartHour", "nightModeStartMinute", "nightModeEndHour",
|
||||||
"nightModeEndMinute", "latitude", "longitude", "nightModeLocationProvider",
|
"nightModeEndMinute", "latitude", "longitude", "nightModeUseIPLocation", "nightModeLocationProvider",
|
||||||
"pinnedApps", "selectedGpuIndex", "nvidiaGpuTempEnabled",
|
"pinnedApps", "selectedGpuIndex", "nvidiaGpuTempEnabled",
|
||||||
"nonNvidiaGpuTempEnabled", "enabledGpuPciIds", "wallpaperCyclingEnabled",
|
"nonNvidiaGpuTempEnabled", "enabledGpuPciIds", "wallpaperCyclingEnabled",
|
||||||
"wallpaperCyclingMode", "wallpaperCyclingInterval", "wallpaperCyclingTime",
|
"wallpaperCyclingMode", "wallpaperCyclingInterval", "wallpaperCyclingTime",
|
||||||
"monitorCyclingSettings", "lastBrightnessDevice", "wallpaperTransition",
|
"monitorCyclingSettings", "lastBrightnessDevice", "launchPrefix", "wallpaperTransition",
|
||||||
"includedTransitions", "recentColors", "showThirdPartyPlugins", "configVersion"
|
"includedTransitions", "recentColors", "showThirdPartyPlugins", "configVersion"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -409,9 +409,9 @@ Item {
|
|||||||
height: 40
|
height: 40
|
||||||
text: SessionData.latitude.toString()
|
text: SessionData.latitude.toString()
|
||||||
placeholderText: "0.0"
|
placeholderText: "0.0"
|
||||||
onTextChanged: {
|
onEditingFinished: {
|
||||||
const lat = parseFloat(text) || 0.0
|
const lat = parseFloat(text)
|
||||||
if (lat >= -90 && lat <= 90) {
|
if (!isNaN(lat) && lat >= -90 && lat <= 90 && lat !== SessionData.latitude) {
|
||||||
SessionData.setLatitude(lat)
|
SessionData.setLatitude(lat)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -432,9 +432,9 @@ Item {
|
|||||||
height: 40
|
height: 40
|
||||||
text: SessionData.longitude.toString()
|
text: SessionData.longitude.toString()
|
||||||
placeholderText: "0.0"
|
placeholderText: "0.0"
|
||||||
onTextChanged: {
|
onEditingFinished: {
|
||||||
const lon = parseFloat(text) || 0.0
|
const lon = parseFloat(text)
|
||||||
if (lon >= -180 && lon <= 180) {
|
if (!isNaN(lon) && lon >= -180 && lon <= 180 && lon !== SessionData.longitude) {
|
||||||
SessionData.setLongitude(lon)
|
SessionData.setLongitude(lon)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user