From d1c623f4c3d72c859f9ad9cb985be127d6a3eb62 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Sat, 2 Sep 2023 16:28:04 +0100 Subject: feat: Add Download Manager (pause, stop, delete) (#1339) --- src/lib/Menu.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/lib') diff --git a/src/lib/Menu.ts b/src/lib/Menu.ts index a90fd8bea..8ad4441d2 100644 --- a/src/lib/Menu.ts +++ b/src/lib/Menu.ts @@ -32,6 +32,7 @@ import { nodeVersion, osArch, toggleFullScreenKey, + downloadsShortcutKey, } from '../environment'; import { CUSTOM_WEBSITE_RECIPE_ID, LIVE_API_FERDIUM_WEBSITE } from '../config'; import { ferdiumVersion } from '../environment-remote'; @@ -874,6 +875,15 @@ class FranzMenu implements StoresProps { { type: 'separator', }, + { + label: intl.formatMessage(globalMessages.downloads), + accelerator: `${downloadsShortcutKey()}`, + click: () => { + this.actions.ui.openDownloads({ path: '/downloadmanager' }); + }, + enabled: this.stores.user.isLoggedIn, + visible: !locked, + }, { label: intl.formatMessage(globalMessages.settings), accelerator: `${settingsShortcutKey()}`, @@ -990,6 +1000,15 @@ class FranzMenu implements StoresProps { }); } else { tpl[0].submenu = [ + { + label: intl.formatMessage(globalMessages.downloads), + accelerator: `${downloadsShortcutKey()}`, + click: () => { + this.actions.ui.openDownloads({ path: '/downloadmanager' }); + }, + enabled: this.stores.user.isLoggedIn, + visible: !locked, + }, { label: intl.formatMessage(globalMessages.settings), accelerator: `${settingsShortcutKey()}`, -- cgit v1.2.3-70-g09d2