Add a Save As location preference (#145)
Add a General preferences option controlling where the Save As panel opens: the last used folder (default), the same folder as the imported file, or a custom folder chosen by the user.
This commit is contained in:
1 parent
151530d6ab
commit
c8fb950854
5 files changed
+172
-4
No files matched your search
@@ -91,6 +91,10 @@ extension MP42File {
|
||||
}
|
||||
}
|
||||
|
||||
func preferredFileDirectory() -> URL? {
|
||||
return tracks.compactMap { $0.url }.first?.deletingLastPathComponent()
|
||||
}
|
||||
|
||||
func formattedFileName() -> String? {
|
||||
guard let mediaKindValue = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyMediaKind).first?.numberValue?.intValue,
|
||||
let mediaKind = MediaKind(rawValue: mediaKindValue)
|
||||
|
||||
Reference in new issue
Block a user