mirror of
https://github.com/immich-app/immich.git
synced 2026-02-07 11:33:45 -05:00
fix: image and video download complete notification shows "file_name" (#25975)
* fix: image and video download complete notification shows "file_name" * fix lint --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
84e30abe5d
commit
bcea64875f
@ -27,19 +27,17 @@ import 'package:isar/isar.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
|
||||
void configureFileDownloaderNotifications() {
|
||||
final fileName = 'file_name'.t(args: {'file_name': '{filename}'});
|
||||
|
||||
FileDownloader().configureNotificationForGroup(
|
||||
kDownloadGroupImage,
|
||||
running: TaskNotification('downloading_media'.t(), fileName),
|
||||
complete: TaskNotification('download_finished'.t(), fileName),
|
||||
running: TaskNotification('downloading_media'.t(), '${'file_name_text'.t()}: {filename}'),
|
||||
complete: TaskNotification('download_finished'.t(), '${'file_name_text'.t()}: {filename}'),
|
||||
progressBar: true,
|
||||
);
|
||||
|
||||
FileDownloader().configureNotificationForGroup(
|
||||
kDownloadGroupVideo,
|
||||
running: TaskNotification('downloading_media'.t(), fileName),
|
||||
complete: TaskNotification('download_finished'.t(), fileName),
|
||||
running: TaskNotification('downloading_media'.t(), '${'file_name_text'.t()}: {filename}'),
|
||||
complete: TaskNotification('download_finished'.t(), '${'file_name_text'.t()}: {filename}'),
|
||||
progressBar: true,
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user