mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
Actually use hasWifi for wifi check
This commit is contained in:
parent
4988c0a4c2
commit
d586f183c7
1 changed files with 2 additions and 2 deletions
|
|
@ -88,8 +88,8 @@ class ForegroundUploadService {
|
|||
}
|
||||
|
||||
final networkCapabilities = await _connectivityApi.getCapabilities();
|
||||
final hasWifi = networkCapabilities.isUnmetered;
|
||||
_logger.info('Network capabilities: $networkCapabilities, hasWifi/isUnmetered: $hasWifi');
|
||||
final hasWifi = networkCapabilities.hasWifi;
|
||||
_logger.info('Network capabilities: $networkCapabilities, hasWifi: $hasWifi');
|
||||
|
||||
if (useSequentialUpload) {
|
||||
await _uploadSequentially(items: candidates, cancelToken: cancelToken, hasWifi: hasWifi, callbacks: callbacks);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue