I have been looking for a QGIS toggle to disable layers' feature selection like in ArcMap/MapInfo. Found Setting layer as unselectable to avoid identifying features in multiple layers using QGIS but answers were only about feature identification.
Recently tested pyqgis snippet that completely disables manual feature selection in map area. Also wrote about it in answer area.
This thing will remove a signal for a selection of current layer's features. But now I can't understand how to bring the selection signal back. Tried to connect a signal from other layer but no results, though I can't clearly understand
pyqtSignal logic here. Any thoughts?