From 1d6f307a96ef33fcea1d405eb682ab0ae5383c00 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Fri, 21 Jul 2023 21:22:57 -0400 Subject: [PATCH] N249: Enable cinematic warmth --- src/homeWidget/mainwindow.cpp | 2 +- src/reader/reader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/homeWidget/mainwindow.cpp b/src/homeWidget/mainwindow.cpp index 96001b3..bf44345 100644 --- a/src/homeWidget/mainwindow.cpp +++ b/src/homeWidget/mainwindow.cpp @@ -710,7 +710,7 @@ void MainWindow::setBatteryIcon() { } void MainWindow::setInitialBrightness() { - if(global::deviceID == "n873\n") { + if(global::deviceID == "n249\n" or global::deviceID == "n873\n") { int warmth; QString warmthConfig = readFile(".config/03-brightness/config-warmth"); if(warmthConfig.isEmpty()) { diff --git a/src/reader/reader.cpp b/src/reader/reader.cpp index 3e78d0a..766e756 100644 --- a/src/reader/reader.cpp +++ b/src/reader/reader.cpp @@ -2257,7 +2257,7 @@ void reader::setCinematicBrightnessWarmthSlot() { log("Local Reading Settings: Setting brightness to " + QString::number(brightness_value), className); cinematicBrightness(brightness_value, 2); } - if(global::deviceID == "n873\n") { + if(global::deviceID == "n249\n" or global::deviceID == "n873\n") { int warmthValue = readFile(".config/03-brightness/config-warmth").toInt(); log("Local Reading Settings: Setting warmth to " + QString::number(warmthValue), className); cinematicWarmth(warmthValue);