[gnome-maps/wip/mlundblad/fix-toggle-layer] shaoeLayer: Fix hiding/showing shape layer
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/fix-toggle-layer] shaoeLayer: Fix hiding/showing shape layer
- Date: Sat, 27 Aug 2022 19:50:14 +0000 (UTC)
commit fd9f6f0ac68820e91e17b1d7889334a003a7d8eb
Author: Marcus Lundblad <ml dfupdate se>
Date: Sat Aug 27 21:49:09 2022 +0200
shaoeLayer: Fix hiding/showing shape layer
src/shapeLayer.js | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/shapeLayer.js b/src/shapeLayer.js
index 3967fca1..1cb798ce 100644
--- a/src/shapeLayer.js
+++ b/src/shapeLayer.js
@@ -70,13 +70,8 @@ export class ShapeLayer extends GObject.Object {
}
set visible(v) {
- if (v && !this._visible) {
- this._overlayLayer.visible = true;
- this._markerLayer.show_all_markers();
- } else if (!v && this._visible) {
- this._overlayLayer.visible = false;
- this._markerLayer.hide_all_markers();
- }
+ this._overlayLayer.visible = v;
+ this._markerLayer.visible = v;
this._visible = v;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]