mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23: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
|
|
@ -342,6 +342,20 @@ const createWindow = async (first = true) => {
|
|||
}
|
||||
});
|
||||
|
||||
ipcMain.handle('open-item', async (_event, path: string) => {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
access(path, constants.F_OK, (error) => {
|
||||
if (error) {
|
||||
reject(error);
|
||||
return;
|
||||
}
|
||||
|
||||
shell.showItemInFolder(path);
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
const globalMediaKeysEnabled = store.get('global_media_hotkeys', true) as boolean;
|
||||
|
||||
if (globalMediaKeysEnabled) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue