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

fix: remove useFahrenheit refresh, fetch Celcius convert locally (#785)

* fix: remove useFahrenheit refresh, fetch Celcius convert locally

* fix: typo in change unit button
This commit is contained in:
mbpowers
2025-11-21 20:41:12 -06:00
committed by GitHub
parent f8dc6ad2bc
commit 1e70d7b4c3
2 changed files with 2 additions and 11 deletions

View File

@@ -190,10 +190,6 @@ Singleton {
"forecast_days=7"
]
if (SettingsData.useFahrenheit) {
params.push("temperature_unit=fahrenheit")
}
return "https://api.open-meteo.com/v1/forecast?" + params.join('&')
}
@@ -630,11 +626,6 @@ Singleton {
root.forceRefresh()
})
SettingsData.useFahrenheitChanged.connect(() => {
root.lastFetchTime = 0
root.forceRefresh()
})
SettingsData.weatherEnabledChanged.connect(() => {
if (SettingsData.weatherEnabled && root.refCount > 0 && !root.weather.available) {
root.forceRefresh()