[gnome-weather/wip/christopherdavis/use-find-nearest-city-instead-of-detached] shared/world.js: don't use detached location from settings
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather/wip/christopherdavis/use-find-nearest-city-instead-of-detached] shared/world.js: don't use detached location from settings
- Date: Thu, 21 Mar 2019 23:51:47 +0000 (UTC)
commit 03bc89e5b9fadb0694d5722298c417f003c56b31
Author: Christopher Davis <brainblasted disroot org>
Date: Thu Mar 21 16:50:20 2019 -0700
shared/world.js: don't use detached location from settings
src/shared/world.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/shared/world.js b/src/shared/world.js
index 07feade..682d487 100644
--- a/src/shared/world.js
+++ b/src/shared/world.js
@@ -103,7 +103,8 @@ var WorldModel = GObject.registerClass({
let info = null;
for (let i = locations.length - 1; i >= 0; i--) {
let variant = locations[i];
- let location = this._world.deserialize(variant);
+ let coords = this._world.deserialize(variant).get_coords();
+ let location = this._world.find_nearest_city(coords[0], coords[1]);
info = this._addLocationInternal(location, false);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]