π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Improve logs + fix lint for unawaited future
Neeraj Guptaeb1d468be28f
diff --git a/lib/ui/viewer/file/zoomable_image.dart b/lib/ui/viewer/file/zoomable_image.dartindex 3487a1778f..8f371032e2 100644--- a/lib/ui/viewer/file/zoomable_image.dart+++ b/lib/ui/viewer/file/zoomable_image.dart@@ -266,7 +266,7 @@ class _ZoomableImageState extends State<ZoomableImage>showToast(context,'Updating photo scale zooming and scale: ${_photoViewController.scale}',- );+ ).ignore();}final prevImageInfo = await getImageInfo(previewImageProvider);finalImageInfo = await getImageInfo(finalImageProvider);@@ -301,10 +301,12 @@ class _ZoomableImageState extends State<ZoomableImage>) async {final int h = imageInfo.image.height, w = imageInfo.image.width;if (h != enteFile.height || w != enteFile.width) {- if (kDebugMode) {- showToast(context, 'Updating aspect ratio');+ final logMessage =+ 'Updating aspect ratio for from ${enteFile.height}x${enteFile.width} to ${h}x$w';+ if (kDebugMode && (enteFile.height != 0 || enteFile.width != 0)) {+ showToast(context, logMessage).ignore();}- _logger.info('Updating aspect ratio for $enteFile to $h:$w');+ _logger.info(logMessage);await FileMagicService.instance.updatePublicMagicMetadata([enteFile,], {