N249: Enable cinematic warmth

This commit is contained in:
Nicolas Mailloux 2023-07-21 21:22:57 -04:00
parent 2f8f67b9cf
commit 1d6f307a96
2 changed files with 2 additions and 2 deletions

View file

@ -710,7 +710,7 @@ void MainWindow::setBatteryIcon() {
} }
void MainWindow::setInitialBrightness() { void MainWindow::setInitialBrightness() {
if(global::deviceID == "n873\n") { if(global::deviceID == "n249\n" or global::deviceID == "n873\n") {
int warmth; int warmth;
QString warmthConfig = readFile(".config/03-brightness/config-warmth"); QString warmthConfig = readFile(".config/03-brightness/config-warmth");
if(warmthConfig.isEmpty()) { if(warmthConfig.isEmpty()) {

View file

@ -2257,7 +2257,7 @@ void reader::setCinematicBrightnessWarmthSlot() {
log("Local Reading Settings: Setting brightness to " + QString::number(brightness_value), className); log("Local Reading Settings: Setting brightness to " + QString::number(brightness_value), className);
cinematicBrightness(brightness_value, 2); 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(); int warmthValue = readFile(".config/03-brightness/config-warmth").toInt();
log("Local Reading Settings: Setting warmth to " + QString::number(warmthValue), className); log("Local Reading Settings: Setting warmth to " + QString::number(warmthValue), className);
cinematicWarmth(warmthValue); cinematicWarmth(warmthValue);