N249: Disable night mode

This commit is contained in:
Nicolas Mailloux 2023-07-21 21:15:40 -04:00
parent 5bae8b008e
commit 2f8f67b9cf
2 changed files with 2 additions and 2 deletions

View file

@ -252,7 +252,7 @@ reader::reader(QWidget *parent) :
ui->fontChooser->setCurrentText(global::reader::font); ui->fontChooser->setCurrentText(global::reader::font);
} }
// Night mode // 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) { if(checkconfig(".config/10-dark_mode/config") == true) {
log("Setting night mode to ON", className); log("Setting night mode to ON", className);
writeFile("/tmp/invertScreen", "y"); writeFile("/tmp/invertScreen", "y");

View file

@ -106,7 +106,7 @@ settings::settings(QWidget *parent) :
ui->quoteCheckBox->click(); 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) { if(checkconfig(".config/10-dark_mode/config") == true) {
ui->darkModeCheckBox->click(); ui->darkModeCheckBox->click();
} }