Skip to content

Commit

Permalink
Load extensions in the main thread (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkasila committed Apr 12, 2022
1 parent d4d3bb8 commit 30f6ca6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CodeEdit/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {
}
}

DispatchQueue(label: "extensions.preload").async {
do {
try ExtensionsManager.shared?.preload()
} catch let error {
print(error)
}
do {
try ExtensionsManager.shared?.preload()
} catch let error {
print(error)
}
}

Expand Down

0 comments on commit 30f6ca6

Please sign in to comment.