charging phone on macbook air
whenever I plug iphone into macbook air to charge it, the macbook abruptly shifts from photos being viewed to a page asking me to install photos from iphone on mac. (Unwanted and unnecessary: all photos on phone are automatically uploaded to icloud and shared with all apple devices.) It automatically closes any open image on the computer and shifts to the phone data in the mac photos library. To get back to the image being viewed on the computer, you have to redo settings and preferences (e.g., zoom, angle, etc). in place before the hijacking occurred. Like all functions that automatically seize control from the user, it's very annoying. Is there a way to stop the behavior?
MacBook Air 13″, macOS 13.1