mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
* feat: add auto play setting to mobile * feat: add auto play video setting to web * address review comments * fix setting id --------- Co-authored-by: Saschl <noreply@saschl.com>
18 lines
703 B
Dart
18 lines
703 B
Dart
import 'package:immich_mobile/domain/models/store.model.dart';
|
|
|
|
enum Setting<T> {
|
|
tilesPerRow<int>(StoreKey.tilesPerRow, 4),
|
|
groupAssetsBy<int>(StoreKey.groupAssetsBy, 0),
|
|
showStorageIndicator<bool>(StoreKey.storageIndicator, true),
|
|
loadOriginal<bool>(StoreKey.loadOriginal, false),
|
|
loadOriginalVideo<bool>(StoreKey.loadOriginalVideo, false),
|
|
autoPlayVideo<bool>(StoreKey.autoPlayVideo, true),
|
|
preferRemoteImage<bool>(StoreKey.preferRemoteImage, false),
|
|
advancedTroubleshooting<bool>(StoreKey.advancedTroubleshooting, false),
|
|
enableBackup<bool>(StoreKey.enableBackup, false);
|
|
|
|
const Setting(this.storeKey, this.defaultValue);
|
|
|
|
final StoreKey<T> storeKey;
|
|
final T defaultValue;
|
|
}
|