Fix constant firing of gphoto2 from button code