mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 13:40:24 +02:00
[enhancement]: allow copying/opening path in song modal
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user