refactors iOS theme downloads

This commit is contained in:
Stuart Breckenridge
2021-09-20 09:36:09 +08:00
parent 105a78bc0f
commit afd952fbc2
4 changed files with 85 additions and 41 deletions

View File

@@ -60,7 +60,6 @@ extension AppDelegate : AppDelegateAppleEvents {
try? FileManager.default.createDirectory(at: downloadDirectory, withIntermediateDirectories: true, attributes: nil)
let tmpFileName = UUID().uuidString + ".zip"
downloadDirectory.appendPathComponent("\(tmpFileName)")
if location == nil {
return
}