mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fixed delete dialog colors
This commit is contained in:
parent
edd1f49e57
commit
0f51a9794e
16 changed files with 77 additions and 57 deletions
|
|
@ -112,8 +112,10 @@ class ImmichCacheInfoRepository extends ImmichCacheRepository {
|
|||
}
|
||||
|
||||
@override
|
||||
Future<CacheObject> insert(CacheObject cacheObject,
|
||||
{bool setTouchedToNow = true}) async {
|
||||
Future<CacheObject> insert(
|
||||
CacheObject cacheObject, {
|
||||
bool setTouchedToNow = true,
|
||||
}) async {
|
||||
int newId = keyLookupHiveBox.length == 0
|
||||
? 0
|
||||
: keyLookupHiveBox.values.reduce(max) + 1;
|
||||
|
|
@ -144,8 +146,10 @@ class ImmichCacheInfoRepository extends ImmichCacheRepository {
|
|||
}
|
||||
|
||||
@override
|
||||
Future<int> update(CacheObject cacheObject,
|
||||
{bool setTouchedToNow = true}) async {
|
||||
Future<int> update(
|
||||
CacheObject cacheObject, {
|
||||
bool setTouchedToNow = true,
|
||||
}) async {
|
||||
if (cacheObject.id != null) {
|
||||
cacheObjectLookupBox.put(cacheObject.id, cacheObject.toMap());
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue