update startloading

This commit is contained in:
neon443 committed 2026-04-16 07:46:16 +01:00
1 parent 6671756e62
commit 5d377644d6
1 file changed
+5 -3
+5 -3
View File
@@ -47,14 +47,15 @@ class EmojiHoarder: BaseHoarder {
}
func startLoading(localOnly: Bool, skipIndex: Bool) {
Task.detached {
Task {
print(localOnly)
if !skipIndex { await self.buildTrie() }
guard !localOnly else { return }
if !localOnly {
print("start loading remote db")
await self.loadRemoteDB()
print("end")
}
if !skipIndex {
await self.buildTrie()
@@ -190,6 +191,7 @@ class EmojiHoarder: BaseHoarder {
if let fetched = await fetched {
await MainActor.run {
withAnimation(.snappy) { self.emojis = fetched }
print(EmojiHoarder.container)
}
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.