disable automatic dark mode when dark theme is selected
This commit is contained in:
parent
f38a5b8a15
commit
deae4982e1
1 changed files with 2 additions and 0 deletions
|
@ -141,6 +141,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
|||
} = this.props;
|
||||
|
||||
const noDaemonSettings = !daemonSettings || Object.keys(daemonSettings).length === 0;
|
||||
const isDarkModeEnabled = currentTheme === 'dark';
|
||||
|
||||
return (
|
||||
<Page>
|
||||
|
@ -294,6 +295,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
|||
name="automatic_dark_mode"
|
||||
onChange={e => this.onAutomaticDarkModeChange(e.target.checked)}
|
||||
checked={automaticDarkModeEnabled}
|
||||
disabled={isDarkModeEnabled}
|
||||
postfix={__('Automatic dark mode (9pm to 8am)')}
|
||||
/>
|
||||
</section>
|
||||
|
|
Loading…
Reference in a new issue