[gnome-maps/wip/mlundblad/fix-place-details-update: 4/4] placeBubble: Use place instance from the place store
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/fix-place-details-update: 4/4] placeBubble: Use place instance from the place store
- Date: Mon, 4 Jan 2021 21:48:47 +0000 (UTC)
commit 4035d47d1c6559771c9a10513ee8190e4d979d20
Author: Marcus Lundblad <ml update uu se>
Date: Sat Jan 2 15:38:51 2021 +0100
placeBubble: Use place instance from the place store
When populating place details use the place instance
stored in the place store in the case when not retrieving
from Overpass (e.g. when not stale).
src/placeBubble.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/placeBubble.js b/src/placeBubble.js
index 5327c04f..ffdd8a6b 100644
--- a/src/placeBubble.js
+++ b/src/placeBubble.js
@@ -85,8 +85,8 @@ var PlaceBubble = GObject.registerClass({
if (Application.placeStore.isStale(this.place)) {
overpass.addInfo(this.place);
} else {
- let place = Application.placeStore.get(this.place);
- this._populate(place);
+ this._place = Application.placeStore.get(this.place);
+ this._populate(this.place);
}
} else if (this.place.store && !this.place.prefilled) {
overpass.addInfo(this.place);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]