Skip to content

Commit

Permalink
fix enabling Night Shift (thanks @choco)
Browse files Browse the repository at this point in the history
  • Loading branch information
thompsonate committed Oct 4, 2018
1 parent af170bb commit 0fbabd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shifty/NightShiftManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ enum NightShiftManager {
client.setEnabled(newValue)

// Set to appropriate strength when in schedule transition by resetting schedule
if (newValue && (blueLightStatus.mode != 0)) {
if newValue && scheduledState {
let savedMode = blueLightStatus.mode
client.setMode(0)
client.setMode(savedMode)
Expand Down

0 comments on commit 0fbabd6

Please sign in to comment.