fix(camera): full roll no longer discards the newest photo

When the roll hit CAMERA_ROLL_LIMIT the capture path alerted "full" then did
clone.pop() (dropping the NEWEST photo) and pushed the new one — so once full the
roll was pinned at the limit and every further shot just replaced the most-recent
picture. Block the shot instead (return after the alert).
This commit is contained in:
simoleo89
2026-06-13 16:42:31 +02:00
parent d6cac249c6
commit a776960650
@@ -46,9 +46,11 @@ export const CameraWidgetCaptureView: FC<CameraWidgetCaptureViewProps> = props =
if(clone.length >= CAMERA_ROLL_LIMIT)
{
// Roll is full — block the shot (the old code did clone.pop(), which
// discarded the NEWEST photo and pinned the roll at the limit forever).
simpleAlert(LocalizeText('camera.full.body'));
clone.pop();
return;
}
PlaySound(SoundNames.CAMERA_SHUTTER);