Don't select reference images when they are hidden
Description
I have a reference images behind the circuit. I can select them even though the Images selector is off:
If I have multiple images, the selection menu pops up.
Steps to reproduce
- Add a couple reference images
- Turn off image visibility
- Click on empty space where the image is located
- Notice the selection menu show up
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: 7.99.0-3819-gfcc6dec0e4, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.12.1
HarfBuzz 8.2.1
FontConfig 2.14.2
Platform: Windows 11 (build 22631), 64-bit edition, 64 bit, Little endian, wxMSW
wxWidgets: 3.2.4 (wchar_t,wx containers)
Boost: 1.83.0
OCC: 7.7.1
Curl: 8.4.0-DEV
ngspice: 41
Compiler: Visual C++ 1936 without C++ ABI
Build settings: