Preset the metadata edit view controller as a sheet on 10.10 and alter.

This commit is contained in:
Damiano Galassi committed 2017-08-30 07:31:36 +02:00
1 parent 318cfb47a3
commit 6e462efb3d
3 files changed
+66 -43

No files matched your search

+7
View File
@@ -40,6 +40,13 @@ class PresetEditorViewController: SBMovieViewController {
replaceAnnotations.state = preset.replaceAnnotations == true ? .on : .off
}
@IBAction func done(_ sender: Any) {
if #available(OSX 10.10, *) {
dismissViewController(self)
} else {
// Fallback on earlier versions
}
}
@IBAction func setReplaceArtworksState(_ sender: NSButton) {
preset.replaceArtworks = sender.state == .on ? true : false
}