plugins/nightcolor: clamp preview color temperature to be somewhat sane

BUG: 480700
This commit is contained in:
Xaver Hugl 2024-02-01 22:59:42 +01:00
parent ae7fb3885b
commit cc72778d5e

View file

@ -447,6 +447,7 @@ void NightColorManager::slowUpdate(int targetTemp)
void NightColorManager::preview(uint previewTemp)
{
previewTemp = std::clamp<uint>(previewTemp, MIN_TEMPERATURE, DEFAULT_DAY_TEMPERATURE);
resetQuickAdjustTimer((int)previewTemp);
if (m_previewTimer) {
m_previewTimer.reset();