[gnome-maps] Layers: deactivate ListBoxRow if layer is hidden
- From: Hashem Nasarat <hnasarat src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] Layers: deactivate ListBoxRow if layer is hidden
- Date: Thu, 11 Feb 2016 23:19:18 +0000 (UTC)
commit e8daecd104d44d31c2e0986563d2588a885839af
Author: Hashem Nasarat <hashem riseup net>
Date: Thu Feb 11 17:57:50 2016 -0500
Layers: deactivate ListBoxRow if layer is hidden
This way you can't click on the row and center a shape layer that isn't
visible!
https://bugzilla.gnome.org/show_bug.cgi?id=761884
src/layersPopover.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/layersPopover.js b/src/layersPopover.js
index a4f2c74..6535587 100644
--- a/src/layersPopover.js
+++ b/src/layersPopover.js
@@ -42,6 +42,7 @@ const ShapeLayerRow = new Lang.Class({
let image = this._visibleButton.get_child();
this.shapeLayer.visible = !this.shapeLayer.visible;
+ this.activatable = this.shapeLayer.visible;
if (this.shapeLayer.visible)
image.icon_name = 'layer-visible-symbolic';
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]