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/containers/settings/EditSettingsScreen.tsx | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

(limited to 'src/containers/settings/EditSettingsScreen.tsx')

diff --git a/src/containers/settings/EditSettingsScreen.tsx b/src/containers/settings/EditSettingsScreen.tsx
index b9732ead0..8190bef3e 100644
--- a/src/containers/settings/EditSettingsScreen.tsx
+++ b/src/containers/settings/EditSettingsScreen.tsx
@@ -255,6 +255,10 @@ const messages = defineMessages({
     id: 'settings.app.form.hideSettingsButton',
     defaultMessage: 'Hide Settings button',
   },
+  hideDownloadButton: {
+    id: 'settings.app.form.hideDownloadButton',
+    defaultMessage: 'Hide Downloads button',
+  },
   alwaysShowWorkspaces: {
     id: 'settings.app.form.alwaysShowWorkspaces',
     defaultMessage: 'Always show workspace drawer',
@@ -425,6 +429,7 @@ class EditSettingsScreen extends Component<
         hideWorkspacesButton: Boolean(settingsData.hideWorkspacesButton),
         hideNotificationsButton: Boolean(settingsData.hideNotificationsButton),
         hideSettingsButton: Boolean(settingsData.hideSettingsButton),
+        hideDownloadButton: Boolean(settingsData.hideDownloadButton),
         alwaysShowWorkspaces: Boolean(settingsData.alwaysShowWorkspaces),
         accentColor: settingsData.accentColor,
         progressbarAccentColor: settingsData.progressbarAccentColor,
@@ -1081,6 +1086,15 @@ class EditSettingsScreen extends Component<
           default: DEFAULT_APP_SETTINGS.hideSettingsButton,
           type: 'checkbox',
         },
+        hideDownloadButton: {
+          label: intl.formatMessage(messages.hideDownloadButton),
+          value: ifUndefined<boolean>(
+            settings.all.app.hideDownloadButton,
+            DEFAULT_APP_SETTINGS.hideDownloadButton,
+          ),
+          default: DEFAULT_APP_SETTINGS.hideDownloadButton,
+          type: 'checkbox',
+        },
         alwaysShowWorkspaces: {
           label: intl.formatMessage(messages.alwaysShowWorkspaces),
           value: ifUndefined<boolean>(
-- 
cgit v1.2.3-70-g09d2

