Fix send to queue save panel.

This commit is contained in:
Damiano Galassi committed 2018-02-14 10:05:27 +01:00
1 parent 9c8c796598
commit f35c3734ee
2 files changed
+25 -22

No files matched your search

+7 -3
View File
@@ -76,7 +76,7 @@ import IOKit.pwr_mgt
private var optimize: Bool
private var options: [String : Any]
private func defaultSaveOptions() -> [String : Any] {
func saveOptions() -> [String : Any] {
var options = [String : Any]()
if UserDefaults.standard.bool(forKey: "chaptersPreviewTrack") {
@@ -120,8 +120,8 @@ import IOKit.pwr_mgt
docController?.endProgressReporting()
}
options = defaultSaveOptions()
accessoryViewController = nil
options = saveOptions()
releaseSavePanel()
docController?.startProgressReporting()
super.save(to: url, ofType: typeName, for: saveOperation, completionHandler: modifiedCompletionhandler)
@@ -194,6 +194,10 @@ import IOKit.pwr_mgt
return true
}
func releaseSavePanel() {
accessoryViewController = nil
}
// MARK: User interface validation
override func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {