DesktopImageStorage was using the PictureData.Camera itself as the key to its images, which is wrong, because PictureData.Camera contains metadata that can change. This causes a crash when editing e.g. the description of an image.
Also moved responsibility for putting a new picture into pictures from DesktopImageStorage to Dependencies, as all the other management of pictures is there.
DesktopImageStorage
was using thePictureData.Camera
itself as the key to its images, which is wrong, becausePictureData.Camera
contains metadata that can change. This causes a crash when editing e.g. the description of an image.Also moved responsibility for putting a new picture into
pictures
fromDesktopImageStorage
toDependencies
, as all the other management of pictures is there.Testing