Fix send to queue save panel.
This commit is contained in:
2 files changed
+25
-22
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user