<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body>That totally makes sense.<div><br></div><div>It would be great to have the checkbox option. </div><div><br></div><div>Thanks! </div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Nyall Dawson <nyall.dawson@gmail.com> </div><div>Date: 2018-10-22  18:28  (GMT-05:00) </div><div>To: rjwillson@gmail.com </div><div>Cc: qgis-developer <qgis-developer@lists.osgeo.org> </div><div>Subject: Re: [QGIS-Developer] restricting layers to be added to legend to those turned on in the selected map theme </div><div><br></div></div>On Tue, 23 Oct 2018 at 04:15, <rjwillson@gmail.com> wrote:<br>><br>> Hi,<br>><br>> in QGIS 2.18 when you had selected for your layout to "follow visibility preset" and then went to "Add layer to legend" your list of layers would be restricted to the subset of layers that were turned on for the preset (now called map theme).<br>><br>> This does not happen in Q3.2 or the latest Q developmental version where instead all of the layers in the project are listed.<br>><br>> I love the new search dialogue built into the developmental version so that you can quickly search for your layer to add to the legend; however, it is still much quicker to add the relevant layers to your legend by restricting the layers shown in the selection dialogue to those turned on in the map theme selected to be followed (i.e., checkbox for follow map theme selected). Usually I have lots of layers in the project that are not turned on so it can be hard to remember what the layers are called later when I get around to creating the legend<br>><br>> Possibly this change in behaviour was introduced by design or necessitated by some other limitation so may not even be possible to retain?<br><br>The change was intentional, as it allows layers to be added to a<br>legend when they aren't visible in the main canvas (e.g. due to the<br>canvas showing a different map theme, or having a layer for "legend<br>purposes only").<br><br>I'd suggest we could satisfy both use cases by adding a checkbox "only<br>show visible layers" to the bottom of this dialog. Do you agree?<br><br>Nyall<br></body></html>