opt.: icloud sync (#187)

This commit is contained in:
lollipopkit
2023-12-04 10:44:51 +08:00
parent 5035fdce86
commit 3524d92013
9 changed files with 73 additions and 11 deletions

View File

@@ -23,4 +23,15 @@ abstract final class Stores {
key,
snippet,
];
static int? get lastModTime {
int? lastModTime = 0;
for (final store in all) {
final last = store.box.lastModified ?? 0;
if (last > (lastModTime ?? 0)) {
lastModTime = last;
}
}
return lastModTime;
}
}