diff --git a/src/main/downloadsManager.ts b/src/main/downloadsManager.ts index b864826c..f20204e1 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); + const filters = this.getFileFilters(fileElements.slice(1)); return dialog.showSaveDialog({ title: filename, @@ -590,14 +590,15 @@ export class DownloadsManager extends JsonFileManager { }; private getFileFilters = (fileElements: string[]): FileFilter[] => { - const filters = []; + const filters = fileElements.map((element) => ({ + name: `${element.toUpperCase()} (*.${element})`, + extensions: [element], + })); - if (fileElements.length > 1) { - filters.push({ - name: localizeMessage('main.app.initialize.downloadBox.allFiles', 'All files'), - extensions: ['*'], - }); - } + filters.push({ + name: localizeMessage('main.app.initialize.downloadBox.allFiles', 'All files'), + extensions: ['*'], + }); return filters; }; diff --git a/src/main/windows/windowManager.ts b/src/main/windows/windowManager.ts index 0e67dc3b..70d4c816 100644 --- a/src/main/windows/windowManager.ts +++ b/src/main/windows/windowManager.ts @@ -223,6 +223,9 @@ export class WindowManager { const bounds = this.getBounds(); this.throttledWillResize(bounds); ipcMain.emit(RESIZE_MODAL, null, bounds); + this.teamDropdown?.updateWindowBounds(); + this.downloadsDropdown?.updateWindowBounds(); + this.downloadsDropdownMenu?.updateWindowBounds(); } this.isResizing = false; } @@ -254,6 +257,7 @@ export class WindowManager { this.viewManager.setLoadingScreenBounds(); this.teamDropdown?.updateWindowBounds(); this.downloadsDropdown?.updateWindowBounds(); + this.downloadsDropdownMenu?.updateWindowBounds(); ipcMain.emit(RESIZE_MODAL, null, bounds); };