mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-06 13:38:28 -04:00
@@ -565,6 +565,7 @@ Item {
|
|||||||
if (text && longitudeInput.text) {
|
if (text && longitudeInput.text) {
|
||||||
const coords = text + "," + longitudeInput.text;
|
const coords = text + "," + longitudeInput.text;
|
||||||
SessionData.weatherCoordinates = coords;
|
SessionData.weatherCoordinates = coords;
|
||||||
|
SessionData.weatherLocation = "";
|
||||||
SessionData.saveSettings();
|
SessionData.saveSettings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -615,6 +616,7 @@ Item {
|
|||||||
if (text && latitudeInput.text) {
|
if (text && latitudeInput.text) {
|
||||||
const coords = latitudeInput.text + "," + text;
|
const coords = latitudeInput.text + "," + text;
|
||||||
SessionData.weatherCoordinates = coords;
|
SessionData.weatherCoordinates = coords;
|
||||||
|
SessionData.weatherLocation = "";
|
||||||
SessionData.saveSettings();
|
SessionData.saveSettings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -462,7 +462,7 @@ Singleton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getConfiguredLocationName() {
|
function getConfiguredLocationName() {
|
||||||
return SessionData.isGreeterMode ? GreetdSettings.weatherLocation : SettingsData.weatherLocation;
|
return SessionData.isGreeterMode ? SessionData.weatherLocation : SettingsData.weatherLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setLocation(lat, lon, city, country) {
|
function setLocation(lat, lon, city, country) {
|
||||||
@@ -516,8 +516,8 @@ Singleton {
|
|||||||
|
|
||||||
function updateLocation() {
|
function updateLocation() {
|
||||||
const useAuto = SessionData.isGreeterMode ? GreetdSettings.useAutoLocation : SettingsData.useAutoLocation;
|
const useAuto = SessionData.isGreeterMode ? GreetdSettings.useAutoLocation : SettingsData.useAutoLocation;
|
||||||
const coords = SessionData.isGreeterMode ? GreetdSettings.weatherCoordinates : SettingsData.weatherCoordinates;
|
const coords = SessionData.isGreeterMode ? SessionData.weatherCoordinates : SettingsData.weatherCoordinates;
|
||||||
const cityName = SessionData.isGreeterMode ? GreetdSettings.weatherLocation : SettingsData.weatherLocation;
|
const cityName = SessionData.isGreeterMode ? SessionData.weatherLocation : SettingsData.weatherLocation;
|
||||||
|
|
||||||
if (useAuto) {
|
if (useAuto) {
|
||||||
getLocationFromService();
|
getLocationFromService();
|
||||||
@@ -803,7 +803,7 @@ Singleton {
|
|||||||
onExited: exitCode => {
|
onExited: exitCode => {
|
||||||
if (bigDataCloudFetcher.reqId !== root._geocodeReqId)
|
if (bigDataCloudFetcher.reqId !== root._geocodeReqId)
|
||||||
return;
|
return;
|
||||||
// Final fallback; no further action needed
|
// Final fallback; no further action needed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user