From 86eacea74d754f67e660f3ea7fd988a2444ea3cf Mon Sep 17 00:00:00 2001
From: Vendicated <vendicated@riseup.net>
Date: Tue, 11 Oct 2022 21:48:28 +0200
Subject: Make ReactDevTools Opt-in

---
 src/components/Settings.tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'src/components/Settings.tsx')

diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index 7756902..6c5b501 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -100,10 +100,17 @@ export default ErrorBoundary.wrap(function Settings() {
             <Switch
                 value={settings.useQuickCss}
                 onChange={(v: boolean) => settings.useQuickCss = v}
-                note="Enable QuickCSS"
+                note="Loads styles from your QuickCss file"
             >
                 Use QuickCss
             </Switch>
+            {!IS_WEB && <Switch
+                value={settings.enableReactDevtools}
+                onChange={(v: boolean) => settings.enableReactDevtools = v}
+                note="Requires a full restart"
+            >
+                Enable React Developer Tools
+            </Switch>}
             {!IS_WEB && <Switch
                 value={settings.notifyAboutUpdates}
                 onChange={(v: boolean) => settings.notifyAboutUpdates = v}
-- 
cgit 

