Skip to content

Commit

Permalink
feat: add async to persist
Browse files Browse the repository at this point in the history
  • Loading branch information
ayroblu committed Jan 4, 2021
1 parent 0799d11 commit e40a716
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/logic/Persist.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class Persist {
}
static func writeWindowsToFileWithPermission(_ windows: [Window]) {
if Preferences.persistToDisk {
writeWindowsToFile(windows)
DispatchQueue.main.async {
writeWindowsToFile(windows)
}
}
}
}
Expand Down

0 comments on commit e40a716

Please sign in to comment.