plugins/nightcolor: clamp preview color temperature to be somewhat sane
BUG: 480700
This commit is contained in:
parent
ae7fb3885b
commit
cc72778d5e
1 changed files with 1 additions and 0 deletions
|
@ -447,6 +447,7 @@ void NightColorManager::slowUpdate(int targetTemp)
|
||||||
|
|
||||||
void NightColorManager::preview(uint previewTemp)
|
void NightColorManager::preview(uint previewTemp)
|
||||||
{
|
{
|
||||||
|
previewTemp = std::clamp<uint>(previewTemp, MIN_TEMPERATURE, DEFAULT_DAY_TEMPERATURE);
|
||||||
resetQuickAdjustTimer((int)previewTemp);
|
resetQuickAdjustTimer((int)previewTemp);
|
||||||
if (m_previewTimer) {
|
if (m_previewTimer) {
|
||||||
m_previewTimer.reset();
|
m_previewTimer.reset();
|
||||||
|
|
Loading…
Reference in a new issue