chore: Rename variables, cleanup code

This commit is contained in:
Anton Stubenbord
2023-06-10 19:12:52 +02:00
parent 46e30d833b
commit 09ddea4473
2 changed files with 4 additions and 4 deletions

View File

@@ -44,14 +44,14 @@ class DocumentScannerCubit extends Cubit<List<File>> {
Future<void> 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,
);
}
}

View File

@@ -204,9 +204,9 @@ class _ScannerPageState extends State<ScannerPage>
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,
),
);