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
+8 -6
+8 -6
View File
@@ -47,14 +47,15 @@ class EmojiHoarder: BaseHoarder {
} }
func startLoading(localOnly: Bool, skipIndex: Bool) { func startLoading(localOnly: Bool, skipIndex: Bool) {
Task.detached { Task {
print(localOnly)
if !skipIndex { await self.buildTrie() } if !skipIndex { await self.buildTrie() }
guard !localOnly else { return } if !localOnly {
print("start loading remote db")
print("start loading remote db") await self.loadRemoteDB()
await self.loadRemoteDB() print("end")
print("end") }
if !skipIndex { if !skipIndex {
await self.buildTrie() await self.buildTrie()
@@ -190,6 +191,7 @@ class EmojiHoarder: BaseHoarder {
if let fetched = await fetched { if let fetched = await fetched {
await MainActor.run { await MainActor.run {
withAnimation(.snappy) { self.emojis = fetched } 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.