I am working with QGIS 3.14 and 3.16 on Mac and Windows and I am really struggling in finding a way to remove disabled map layers in the legend view of the Layout Composer. In prior versions there was this "Filter legend by map content" button (see here: https://docs.qgis.org/3.4/en/docs/user_manual/print_composer/composer_items/composer_legend.html#legend-items) but this option seems to be removed for any reason (see here https://docs.qgis.org/3.16/en/docs/user_manual/print_composer/composer_items/composer_legend.html#legend-items)
The "Filter legend by map content" button is still available from the layer panel but this is not working for the legend in the layout. I also tried the legend item checkbox "Only show items inside linked map" without any success.
Are there any ideas or hints how to solve this issue?
Maybe it can be filtered using an expression - but how is the script looking that filters all visible/enabled map layers for the layout legend