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:
mindprint authored and GitHub committed 2026-09-23 21:15:08 +02:00
1 parent 151530d6ab
commit c8fb950854
5 files changed
+172 -4

No files matched your search

+4
View File
@@ -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)