mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(mobile): Fixes prefer remote assets in thumbnail provider (#7485)
Fixes prefer remote assets in thumbnail provider Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
79442fc8a1
commit
d28abaad7b
2 changed files with 4 additions and 3 deletions
|
|
@ -58,9 +58,11 @@ class ImmichImage extends StatelessWidget {
|
|||
}
|
||||
}
|
||||
|
||||
// Whether to use the local asset image provider or a remote one
|
||||
static bool useLocal(Asset asset) =>
|
||||
!asset.isRemote ||
|
||||
asset.isLocal && !Store.get(StoreKey.preferRemoteImage, false);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (asset == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue