Remove duplicate handler for showing file in folder (#2274)
This commit is contained in:
parent
131b5fa2ac
commit
a4b05c601b
|
@ -12,7 +12,6 @@ import {
|
|||
DOWNLOADS_DROPDOWN_MENU_CANCEL_DOWNLOAD,
|
||||
DOWNLOADS_DROPDOWN_MENU_CLEAR_FILE,
|
||||
DOWNLOADS_DROPDOWN_MENU_OPEN_FILE,
|
||||
DOWNLOADS_DROPDOWN_SHOW_FILE_IN_FOLDER,
|
||||
EMIT_CONFIGURATION,
|
||||
OPEN_DOWNLOADS_DROPDOWN_MENU,
|
||||
REQUEST_DOWNLOADS_DROPDOWN_MENU_INFO,
|
||||
|
@ -70,7 +69,6 @@ export default class DownloadsDropdownMenuView {
|
|||
ipcMain.on(EMIT_CONFIGURATION, this.updateConfig);
|
||||
ipcMain.on(REQUEST_DOWNLOADS_DROPDOWN_MENU_INFO, this.updateDownloadsDropdownMenu);
|
||||
ipcMain.on(DOWNLOADS_DROPDOWN_MENU_OPEN_FILE, this.openFile);
|
||||
ipcMain.on(DOWNLOADS_DROPDOWN_SHOW_FILE_IN_FOLDER, this.showFileInFolder);
|
||||
ipcMain.on(DOWNLOADS_DROPDOWN_MENU_CANCEL_DOWNLOAD, this.cancelDownload);
|
||||
ipcMain.on(DOWNLOADS_DROPDOWN_MENU_CLEAR_FILE, this.clearFile);
|
||||
ipcMain.on(UPDATE_DOWNLOADS_DROPDOWN_MENU, this.updateItem);
|
||||
|
@ -176,13 +174,6 @@ export default class DownloadsDropdownMenuView {
|
|||
this.handleClose();
|
||||
}
|
||||
|
||||
showFileInFolder = (e: IpcMainEvent, item: DownloadedItem) => {
|
||||
log.debug('DownloadsDropdownMenuView.showFileInFolder', {item});
|
||||
|
||||
downloadsManager.showFileInFolder(item);
|
||||
this.handleClose();
|
||||
}
|
||||
|
||||
getBounds = (width: number, height: number) => {
|
||||
// MUST return integers
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue