From 09ddea44733f3d0204459fe9ed22350adae6debf Mon Sep 17 00:00:00 2001 From: Anton Stubenbord Date: Sat, 10 Jun 2023 19:12:52 +0200 Subject: [PATCH] chore: Rename variables, cleanup code --- lib/features/document_scan/cubit/document_scanner_cubit.dart | 4 ++-- lib/features/document_scan/view/scanner_page.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/features/document_scan/cubit/document_scanner_cubit.dart b/lib/features/document_scan/cubit/document_scanner_cubit.dart index 3128a56..93657c2 100644 --- a/lib/features/document_scan/cubit/document_scanner_cubit.dart +++ b/lib/features/document_scan/cubit/document_scanner_cubit.dart @@ -44,14 +44,14 @@ class DocumentScannerCubit extends Cubit> { Future saveToFile( Uint8List bytes, String fileName, - String preferredLocaleSubtag, + String locale, ) async { var file = await FileService.saveToFile(bytes, fileName); _notificationService.notifyFileSaved( filename: fileName, filePath: file.path, finished: true, - locale: preferredLocaleSubtag, + locale: locale, ); } } diff --git a/lib/features/document_scan/view/scanner_page.dart b/lib/features/document_scan/view/scanner_page.dart index 932c0e3..bd7c756 100644 --- a/lib/features/document_scan/view/scanner_page.dart +++ b/lib/features/document_scan/view/scanner_page.dart @@ -204,9 +204,9 @@ class _ScannerPageState extends State if (!isGranted) { showSnackBar( context, - "Please grant permissions for Paperless Mobile to access your filesystem.", + "Please grant Paperless Mobile permissions to access your filesystem.", action: SnackBarActionConfig( - label: "GO", + label: "OK", onPressed: openAppSettings, ), );