mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-07 20:07:48 -06:00
chore: Rename variables, cleanup code
This commit is contained in:
@@ -44,14 +44,14 @@ class DocumentScannerCubit extends Cubit<List<File>> {
|
|||||||
Future<void> saveToFile(
|
Future<void> saveToFile(
|
||||||
Uint8List bytes,
|
Uint8List bytes,
|
||||||
String fileName,
|
String fileName,
|
||||||
String preferredLocaleSubtag,
|
String locale,
|
||||||
) async {
|
) async {
|
||||||
var file = await FileService.saveToFile(bytes, fileName);
|
var file = await FileService.saveToFile(bytes, fileName);
|
||||||
_notificationService.notifyFileSaved(
|
_notificationService.notifyFileSaved(
|
||||||
filename: fileName,
|
filename: fileName,
|
||||||
filePath: file.path,
|
filePath: file.path,
|
||||||
finished: true,
|
finished: true,
|
||||||
locale: preferredLocaleSubtag,
|
locale: locale,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,9 +204,9 @@ class _ScannerPageState extends State<ScannerPage>
|
|||||||
if (!isGranted) {
|
if (!isGranted) {
|
||||||
showSnackBar(
|
showSnackBar(
|
||||||
context,
|
context,
|
||||||
"Please grant permissions for Paperless Mobile to access your filesystem.",
|
"Please grant Paperless Mobile permissions to access your filesystem.",
|
||||||
action: SnackBarActionConfig(
|
action: SnackBarActionConfig(
|
||||||
label: "GO",
|
label: "OK",
|
||||||
onPressed: openAppSettings,
|
onPressed: openAppSettings,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user