From f21c28fbfc30d85186404078cb2d7202b0542db2 Mon Sep 17 00:00:00 2001 From: Dan1d Date: Tue, 23 Jul 2019 23:10:56 -0300 Subject: [PATCH] Fix automatic dark mode. - Users are able to select the automatic dark mode checkbox - If it is not selected it should not allow users to pick another theme. --- src/ui/page/settings/view.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ui/page/settings/view.jsx b/src/ui/page/settings/view.jsx index 81f8411df..3c4777a5c 100644 --- a/src/ui/page/settings/view.jsx +++ b/src/ui/page/settings/view.jsx @@ -153,7 +153,6 @@ class SettingsPage extends React.PureComponent { } = this.props; const noDaemonSettings = !daemonSettings || Object.keys(daemonSettings).length === 0; - const isDarkModeEnabled = currentTheme === 'dark'; const defaultMaxKeyFee = { currency: 'USD', amount: 50 }; const disableMaxKeyFee = !(daemonSettings && daemonSettings.max_key_fee); @@ -350,7 +349,6 @@ class SettingsPage extends React.PureComponent { name="automatic_dark_mode" onChange={() => this.onAutomaticDarkModeChange(!automaticDarkModeEnabled)} checked={automaticDarkModeEnabled} - disabled={isDarkModeEnabled} label={__('Automatic dark mode (9pm to 8am)')} />