[gnome-maps/gnome-3-38] placeBubble: Use place instance from the place store
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/gnome-3-38] placeBubble: Use place instance from the place store
- Date: Mon, 4 Jan 2021 21:58:56 +0000 (UTC)
commit 6d3d0d4bc9184e802b6e833f8c6f12e3f81f21b2
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 a9adefd1..414aabd5 100644
--- a/src/placeBubble.js
+++ b/src/placeBubble.js
@@ -98,8 +98,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]