Is it possible, to get a signal, when something (user or script) changes layer scale visibility?
I tried
layer.configChanged.connect(self.test_2)
layer.flagsChanged.connect(self.test_2)
layer.metadataChanged.connect(self.test_2)
layer.rendererChanged.connect(self.test_2)
layer.styleChanged.connect(self.test_2)
and other signals of QgsMapLayer
, QgsVectorLayer
, QgsLayerTreeNode
.
Maybe I'm missing some signal or class?