Hello @zeiukkz and welcome to the forum ![]()
This was described in a topic here:
How to disable select layer by name?
A bug report was raised and your later bug report was linked to it because it was the same ‘bug’ being reported.
That might be an oversight that needs to be corrected by adding the information to the manual.