mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
[enhancement]: allow copying/opening path in song modal
This commit is contained in:
parent
c1345802aa
commit
2c17458fdf
5 changed files with 94 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue