[gnome-maps/gnome-3-36] 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-36] placeBubble: Use place instance from the place store
- Date: Mon, 4 Jan 2021 21:59:58 +0000 (UTC)
commit 291d1aba7ff4dc0e31dc97963dc00f30b55c7b5d
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 19e4082b..372b5f3d 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]