[general]
name=Uncheck Empty Layers
qgisMinimumVersion=3.16
description=Right-click a layer group and uncheck every layer inside it that has no data.
version=1.0.1
author=Lars Nielsen, LIFA Digital and Claude AI
email=lars.nielsen@lifadigital.dk

about=Adds a "Uncheck Empty Layers" action to the right-click menu of layer
    tree groups in the Layers panel. Running it checks the vector layers
    that are direct children of that group and unchecks (hides) any valid
    vector layer with zero features. Nested subgroups, non-vector layers,
    and invalid/broken layers are left untouched.

tracker=https://github.com/lifalin2016/qgis-uncheck_empty_layers/issues
repository=https://github.com/lifalin2016/qgis-uncheck_empty_layers
homepage=https://www.lifadigital.dk

category=Layers
tags=layers,layer group,visibility,empty,vector,cleanup

icon=icon.png
experimental=False
deprecated=False
server=False

hasProcessingProvider=False
changelog=1.0.1
    - Fix: no longer relies on layer.featureCount(), which can be
      unreliable (0, -1, or stale) for database views without a primary
      key/unique index, such as SQL Server views. Emptiness is now
      determined by directly querying the provider for one real feature.
      1.0.0
    - Initial release: right-click group context menu action to uncheck
      valid vector layers with zero features that are direct children of
      the group. Not recursive; non-vector and invalid layers untouched.
