diff --git a/Base.lproj/GeneralPrefsViewController.xib b/Base.lproj/GeneralPrefsViewController.xib index 517fa4a..25eb110 100755 --- a/Base.lproj/GeneralPrefsViewController.xib +++ b/Base.lproj/GeneralPrefsViewController.xib @@ -231,12 +231,12 @@ - + - + diff --git a/Classes/GeneralPrefsViewController.swift b/Classes/GeneralPrefsViewController.swift index 569387c..e8414cb 100644 --- a/Classes/GeneralPrefsViewController.swift +++ b/Classes/GeneralPrefsViewController.swift @@ -66,7 +66,7 @@ class GeneralPrefsViewController: NSViewController { let location = Prefs.saveAsLocation if location == .custom && Prefs.saveAsCustomLocation == nil { - saveLocationPopUp.selectItem(withTag: SaveAsLocation.lastUsed.rawValue) + saveLocationPopUp.selectItem(withTag: SaveAsLocation.automatic.rawValue) } else { saveLocationPopUp.selectItem(withTag: location.rawValue) } @@ -77,7 +77,7 @@ class GeneralPrefsViewController: NSViewController { Prefs.saveAsCustomLocation = url Prefs.saveAsLocation = .custom } else { - Prefs.saveAsLocation = SaveAsLocation(rawValue: sender.tag) ?? .lastUsed + Prefs.saveAsLocation = SaveAsLocation(rawValue: sender.tag) ?? .automatic } } diff --git a/Classes/Prefs.swift b/Classes/Prefs.swift index 28a852b..231a5dc 100644 --- a/Classes/Prefs.swift +++ b/Classes/Prefs.swift @@ -90,13 +90,9 @@ struct StoredCodable : Registable { } } -/// The folder the Save As… panel opens at. enum SaveAsLocation: Int { - /// The last folder used, the standard AppKit behaviour. - case lastUsed = 0 - /// The folder holding the file the tracks were imported from. + case automatic = 0 case sameAsFile = 1 - /// A folder picked by the user. case custom = 2 } @@ -192,7 +188,7 @@ enum Prefs { @Stored(key: "SBLogFormat", defaultValue: 0) static var logFormat: Int // 0 = Time Only, 1 = Date and Time - @StoredEnum(key: "SBSaveAsLocationMode", defaultValue: .lastUsed) + @StoredEnum(key: "SBSaveAsLocationMode", defaultValue: .automatic) static var saveAsLocation: SaveAsLocation /// The folder used when saveAsLocation is set to custom. diff --git a/Classes/SaveOptions.swift b/Classes/SaveOptions.swift index 5e54154..e9ce95e 100644 --- a/Classes/SaveOptions.swift +++ b/Classes/SaveOptions.swift @@ -59,7 +59,7 @@ final class SaveOptions: NSViewController { /// at the last folder used. private func preferredDirectory(for doc: Document) -> URL? { switch Prefs.saveAsLocation { - case .lastUsed: + case .automatic: return nil case .sameAsFile: return doc.fileURL?.deletingLastPathComponent() ?? doc.mp4.firstSourceDirectoryURL()