Deactivate the following buttons when no node tree exists: - Overlays (all node editors) - Snap (all node editors) - Gizmos (compositor only) - Backdrop (compositor only) Note: a node tree can exist although compositing is deactivated (e.g. "Use Nodes" is set to False), in which case the buttons are active. Pull Request: https://projects.blender.org/blender/blender/pulls/139526