From 2f8f67b9cf28541cd4d53e108dbd461a19cbae0c Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Fri, 21 Jul 2023 21:15:40 -0400 Subject: [PATCH] N249: Disable night mode --- src/reader/reader.cpp | 2 +- src/settings/settings.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reader/reader.cpp b/src/reader/reader.cpp index 14a5aca..3e78d0a 100644 --- a/src/reader/reader.cpp +++ b/src/reader/reader.cpp @@ -252,7 +252,7 @@ reader::reader(QWidget *parent) : ui->fontChooser->setCurrentText(global::reader::font); } // Night mode - if(global::deviceID == "n705\n" or global::deviceID == "n905\n" or global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "n437\n" or global::deviceID == "n249\n" or global::deviceID == "n306\n") { + if(global::deviceID == "n705\n" or global::deviceID == "n905\n" or global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "n437\n" or global::deviceID == "n306\n") { if(checkconfig(".config/10-dark_mode/config") == true) { log("Setting night mode to ON", className); writeFile("/tmp/invertScreen", "y"); diff --git a/src/settings/settings.cpp b/src/settings/settings.cpp index c18b31f..e561ff0 100644 --- a/src/settings/settings.cpp +++ b/src/settings/settings.cpp @@ -106,7 +106,7 @@ settings::settings(QWidget *parent) : ui->quoteCheckBox->click(); } - if(global::deviceID == "n705\n" or global::deviceID == "n905\n" or global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "n437\n" or global::deviceID == "n306\n" or global::deviceID == "n249\n") { + if(global::deviceID == "n705\n" or global::deviceID == "n905\n" or global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "n437\n" or global::deviceID == "n306\n") { if(checkconfig(".config/10-dark_mode/config") == true) { ui->darkModeCheckBox->click(); }