Skip to content

Commit b785aae

Browse files
Fix runtime warning
1 parent c78d160 commit b785aae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Mission/ContentView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ struct ContentView: View {
6969
let password = keychain[store.host!.name!]
7070
let auth = TransmissionAuth(username: store.host!.username!, password: password!)
7171
getDefaultDownloadDir(config: config, auth: auth, onResponse: { downloadDir in
72-
store.defaultDownloadDir = downloadDir
73-
self.downloadDir = store.defaultDownloadDir
72+
DispatchQueue.main.async {
73+
store.defaultDownloadDir = downloadDir
74+
self.downloadDir = store.defaultDownloadDir
75+
}
7476
})
7577
updateList(store: store, host: store.host!, update: { vals in
7678
DispatchQueue.main.async {

0 commit comments

Comments
 (0)