From 820813e02451928a99cb8c9498fd091db97f55d5 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sat, 30 Jan 2021 17:46:11 +0000 Subject: [PATCH] Don't allow right click on library channel. --- src/showplanner/Item.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/showplanner/Item.tsx b/src/showplanner/Item.tsx index 68e671a..5e5fc83 100644 --- a/src/showplanner/Item.tsx +++ b/src/showplanner/Item.tsx @@ -8,6 +8,7 @@ import * as MixerState from "../mixer/state"; import { Draggable } from "react-beautiful-dnd"; import { contextMenu } from "react-contexify"; import "./item.scss"; +import { PLAYER_ID_PREVIEW } from "../mixer/audio"; export const TS_ITEM_MENU_ID = "SongMenu"; export const TS_ITEM_AUX_ID = "AuxMenu"; @@ -47,6 +48,7 @@ export const Item = memo(function Item({ function openContextMenu(e: React.MouseEvent) { e.preventDefault(); + if (column === PLAYER_ID_PREVIEW) return; // Don't let people right click in the library. if (isTrack(x)) { contextMenu.show({ id: TS_ITEM_MENU_ID,