diff --git a/mainwindow.cpp b/mainwindow.cpp
index 54ca27c..601e65f 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -158,15 +158,21 @@ void MainWindow::scanDevices()
int temperatureInt = localObj["temperature"].toObject()["current"].toInt();
if (temperatureInt > 0) {
- temperature = QString::number(temperatureInt) + " °C";
+ if (ui->actionUse_Fahrenheit->isChecked()) {
+ int fahrenheit = static_cast " + QString::number(temperatureInt) + " °C " + QString::number(fahrenheit) + " °F
" + QString::number(temperatureInt) + " °C
"); + } } else { temperatureValue->setText("" + "-- °C" + "
"); } @@ -606,7 +617,7 @@ void MainWindow::addSmartAttributesTable(const QJsonArray &attributes) QColor statusColor; if (thresh && (value < thresh)) { statusColor = badColor; - } else if ((id == "05" || id == "C5" || id == "C6") && (raw != "000000000000")) { + } else if ((id == "05" || id == "C5" || id == "C6" || (id == "C4" && !(ui->actionIgnore_C4_Reallocation_Event_Count->isChecked()))) && (raw != "000000000000")) { statusColor = cautionColor; } else { statusColor = goodColor;