diff --git a/quickshell/Modules/Settings/TimeWeatherTab.qml b/quickshell/Modules/Settings/TimeWeatherTab.qml index 5db4f6772..32e8ff83d 100644 --- a/quickshell/Modules/Settings/TimeWeatherTab.qml +++ b/quickshell/Modules/Settings/TimeWeatherTab.qml @@ -565,6 +565,7 @@ Item { if (text && longitudeInput.text) { const coords = text + "," + longitudeInput.text; SessionData.weatherCoordinates = coords; + SessionData.weatherLocation = ""; SessionData.saveSettings(); } } @@ -615,6 +616,7 @@ Item { if (text && latitudeInput.text) { const coords = latitudeInput.text + "," + text; SessionData.weatherCoordinates = coords; + SessionData.weatherLocation = ""; SessionData.saveSettings(); } } diff --git a/quickshell/Services/WeatherService.qml b/quickshell/Services/WeatherService.qml index d3753d8fd..fbc41a477 100644 --- a/quickshell/Services/WeatherService.qml +++ b/quickshell/Services/WeatherService.qml @@ -462,7 +462,7 @@ Singleton { } function getConfiguredLocationName() { - return SessionData.isGreeterMode ? GreetdSettings.weatherLocation : SettingsData.weatherLocation; + return SessionData.isGreeterMode ? SessionData.weatherLocation : SettingsData.weatherLocation; } function setLocation(lat, lon, city, country) { @@ -516,8 +516,8 @@ Singleton { function updateLocation() { const useAuto = SessionData.isGreeterMode ? GreetdSettings.useAutoLocation : SettingsData.useAutoLocation; - const coords = SessionData.isGreeterMode ? GreetdSettings.weatherCoordinates : SettingsData.weatherCoordinates; - const cityName = SessionData.isGreeterMode ? GreetdSettings.weatherLocation : SettingsData.weatherLocation; + const coords = SessionData.isGreeterMode ? SessionData.weatherCoordinates : SettingsData.weatherCoordinates; + const cityName = SessionData.isGreeterMode ? SessionData.weatherLocation : SettingsData.weatherLocation; if (useAuto) { getLocationFromService(); @@ -803,7 +803,7 @@ Singleton { onExited: exitCode => { if (bigDataCloudFetcher.reqId !== root._geocodeReqId) return; - // Final fallback; no further action needed + // Final fallback; no further action needed } }