diff --git a/src/main/downloadsManager.ts b/src/main/downloadsManager.ts index f20204e1..5886ee5f 100644 --- a/src/main/downloadsManager.ts +++ b/src/main/downloadsManager.ts @@ -401,7 +401,7 @@ export class DownloadsManager extends JsonFileManager { private showSaveDialog = (item: DownloadItem) => { const filename = item.getFilename(); const fileElements = filename.split('.'); - const filters = this.getFileFilters(fileElements.slice(1)); + const filters = this.getFileFilters(fileElements.slice(fileElements.length - 1)); return dialog.showSaveDialog({ title: filename,