Fix layout issues.

This commit is contained in:
Damiano Galassi committed 2020-08-06 09:31:25 +02:00
1 parent 1b92b76bad
commit ab52a8e0f6
8 files changed
+102 -116

No files matched your search

+6 -1
View File
@@ -10,9 +10,10 @@ import MP42Foundation
protocol TracksViewControllerDelegate: AnyObject {
func didSelect(tracks: [MP42Track])
func delete(tracks: [MP42Track])
}
final class TracksViewController: NSViewController, NSTableViewDataSource, NSTableViewDelegate {
final class TracksViewController: NSViewController, NSTableViewDataSource, NSTableViewDelegate, ExpandedTableViewDelegate {
weak var delegate: TracksViewControllerDelegate?
@@ -89,6 +90,10 @@ final class TracksViewController: NSViewController, NSTableViewDataSource, NSTab
}
}
func deleteSelection(in tableview: NSTableView) {
delegate?.delete(tracks: selectedTracks)
}
// MARK: Actions
@IBAction func setTrackEnabled(_ sender: NSButton) {