[enhancement]: allow copying/opening path in song modal

This commit is contained in:
Kendall Garner 2024-04-06 16:13:09 -07:00
parent c1345802aa
commit 2c17458fdf
No known key found for this signature in database
GPG key ID: 18D2767419676C87
5 changed files with 94 additions and 1 deletions

View file

@ -10,6 +10,10 @@ const restoreQueue = () => {
ipcRenderer.send('player-restore-queue');
};
const openItem = async (path: string) => {
return ipcRenderer.invoke('open-item', path);
};
const onSaveQueue = (cb: (event: IpcRendererEvent) => void) => {
ipcRenderer.on('renderer-save-queue', cb);
};
@ -51,6 +55,7 @@ export const utils = {
mainMessageListener,
onRestoreQueue,
onSaveQueue,
openItem,
playerErrorListener,
restoreQueue,
saveQueue,