Fix #335: Set period to none when disabled

This allows for hooks to be run when redshift is disabled
This commit is contained in:
Matt Stobo
2017-10-30 19:38:41 -04:00
parent b210813c7f
commit a4d89c7d6b
+1
View File
@@ -723,6 +723,7 @@ run_continual_mode(const location_provider_t *provider,
scheme, transition_prog, &target_interp);
if (disabled) {
period = PERIOD_NONE;
color_setting_reset(&target_interp);
}