summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@update.uu.se>2021-05-18 22:22:54 +0200
committerMarcus Lundblad <ml@update.uu.se>2021-05-18 22:22:54 +0200
commit2a27231afec45e3d8b173c8816ac8940ca9e3e02 (patch)
tree48ed2d10f1757f6bd19ad60be550a2599f2f1ef5
parent761e19f5d2de3f3d146ec568f97c87201688d062 (diff)
downloadgnome-maps-wip/mlundblad/default-hide-native-name.tar.gz
placeView: Hide native name unless it should be shownwip/mlundblad/default-hide-native-name
In some cases, when running in a different locale compared to last run, the native name label could still be shown with the native name from before even when the primary name would become identical.
-rw-r--r--src/placeView.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/placeView.js b/src/placeView.js
index 66e7f5e3..70fca550 100644
--- a/src/placeView.js
+++ b/src/placeView.js
@@ -219,6 +219,12 @@ var PlaceView = GObject.registerClass({
this._title.label = formatter.title;
this._contactAvatar.text = formatter.title;
+ /* hide native name by default, so that it is only shown when it
+ * should, in case it changed when re-applying changes from Overpass.
+ * This could happen if the locale changed since last run.
+ */
+ this._nativeName.visible = false;
+
/* show native name unless it's equal to the localized name, or
* if the localized name is a substring of the native name, as can
* be the case in e.g. duo-lingual native names, such as is used in