mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 09:12:56 +02:00
Optimization/fix slow backup when asset list is long. (#104)
* Handle pause/restart listening to event on_upload_success and reload asset list after navigating back from BackupControllerPage * Remove unused api endpoint
This commit is contained in:
parent
2ff25b49f4
commit
be2794a372
7 changed files with 35 additions and 66 deletions
mobile/lib/modules/home/ui
|
@ -121,8 +121,12 @@ class ImmichSliverAppBar extends ConsumerWidget {
|
|||
),
|
||||
child: const Icon(Icons.backup_rounded)),
|
||||
tooltip: 'Backup Controller',
|
||||
onPressed: () {
|
||||
AutoRouter.of(context).push(const BackupControllerRoute());
|
||||
onPressed: () async {
|
||||
var onPop = await AutoRouter.of(context).push(const BackupControllerRoute());
|
||||
|
||||
if (onPop != null && onPop == true) {
|
||||
onPopBack!();
|
||||
}
|
||||
},
|
||||
),
|
||||
_backupState.backupProgress == BackUpProgressEnum.inProgress
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue