[enhancement]: allow downloading individual tracks for external use

This commit is contained in:
Kendall Garner 2024-08-25 17:08:38 -07:00
parent 10fca2dc12
commit c4677a63f6
No known key found for this signature in database
GPG key ID: 18D2767419676C87
10 changed files with 91 additions and 6 deletions

View file

@ -364,6 +364,10 @@ const createWindow = async (first = true) => {
}
});
ipcMain.on('download-url', (_event, url: string) => {
mainWindow?.webContents.downloadURL(url);
});
const globalMediaKeysEnabled = store.get('global_media_hotkeys', true) as boolean;
if (globalMediaKeysEnabled) {