Skip to content

Commit

Permalink
Fix dark mode being disabled on non-macOS systems (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
dusansimic authored and sindresorhus committed Jan 20, 2019
1 parent 98dabe1 commit 21a6bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Press Command/Ctrl+R in Caprine to see your changes.
id: 'darkMode',
type: 'checkbox',
checked: config.get('darkMode'),
enabled: !config.get('followSystemAppearance'),
enabled: !is.macos || !config.get('followSystemAppearance'),
accelerator: 'CommandOrControl+D',
click() {
config.set('darkMode', !config.get('darkMode'));
Expand Down

0 comments on commit 21a6bb1

Please sign in to comment.