Disable drag & drop for muxed tracks

This commit is contained in:
Damiano Galassi committed 2026-09-29 10:41:57 +02:00
1 parent 59f085a7e4
commit 73e27ef56c
1 file changed
+5 -1
+5 -1
View File
@@ -245,7 +245,11 @@ final class TracksViewController: NSViewController, NSTableViewDataSource, NSTab
func tableView(_ tableView: NSTableView,
pasteboardWriterForRow row: Int) -> (any NSPasteboardWriting)? {
return PasteboardItem(index: row, type: .tableViewIndex)
if let track = track(at: row), track.isMuxed == false {
return PasteboardItem(index: row, type: .tableViewIndex)
} else {
return nil
}
}
func tableView(_ tableView: NSTableView,