fix(mobile): setting to always display remote assets (#3044)

This commit is contained in:
Fynn Petersen-Frey
2023-07-01 03:47:44 +02:00
committed by GitHub
parent 5869648f19
commit 615893be38
6 changed files with 26 additions and 6 deletions

View File

@@ -173,6 +173,7 @@ enum StoreKey<T> {
selectedAlbumSortOrder<int>(113, type: int),
advancedTroubleshooting<bool>(114, type: bool),
logLevel<int>(115, type: int),
preferRemoteImage<bool>(116, type: bool),
;
const StoreKey(

View File

@@ -43,7 +43,8 @@ class ImmichImage extends StatelessWidget {
);
}
final Asset asset = this.asset!;
if (asset.isLocal) {
if (!asset.isRemote ||
(asset.isLocal && !Store.get(StoreKey.preferRemoteImage, false))) {
return Image(
image: AssetEntityImageProvider(
asset.local!,