From 4bee8ad4fc1c315055d0d3377f8140b02cd51621 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 25 Apr 2021 19:06:31 -0300 Subject: naughty hack for context menu in playlist sources ...plus a todo detailing what should be better --- ui.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ui.js') diff --git a/ui.js b/ui.js index b64763b..7e36858 100644 --- a/ui.js +++ b/ui.js @@ -19,6 +19,7 @@ import unic from 'tui-lib/util/unichars' import {getAllCrawlersForArg} from './crawlers.js' import processSmartPlaylist from './smart-playlist.js' +import {originalSymbol} from './socket.js' import UndoManager from './undo-manager.js' import { @@ -1498,6 +1499,16 @@ export default class AppElement extends FocusElement { // const isMarked = false const rootGroup = getItemPath(item)[0] + + // This is the hack mentioned in the todo!!!! + if ( + this.config.showPartyControls && + rootGroup.isPartySources && + item[originalSymbol] + ) { + item = item[originalSymbol] + } + // const hasNotesFile = !!getCorrespondingFileForItem(item, '.txt') const timestampsItem = this.hasTimestampsFile(item) && (this.timestampsExpanded(item, listing) ? {label: 'Collapse saved timestamps', action: () => this.collapseTimestamps(item, listing)} -- cgit 1.3.0-6-gf8a5