mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18:28 -04:00
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user